{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1750222393,
"reponame":"libwebsockets",
"desc":"libwebsockets lightweight C networking library",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets",
"f":3,
"items": [
{ "schema":"libjg2-1",
"oid":{ "oid": "2c2969cdac8d5b156dedef40b335f5733dd0f821", "alias": []},"tree": [
{ "name": "mount-origin","mode": "16384", "size":0},
{ "name": "CMakeLists.txt","mode": "33188", "size":2114},
{ "name": "README.md","mode": "33188", "size":1751},
{ "name": "localhost-100y.cert","mode": "33188", "size":2106},
{ "name": "localhost-100y.key","mode": "33188", "size":3272},
{ "name": "minimal-http-server-tls.c","mode": "33188", "size":2626}],"s":{"c":1750145178,"u": 360}}
,{"schema":"libjg2-1",
"cid":"b1baf23d115c9add12a280c8767cda27",
"oid":{ "oid": "2c2969cdac8d5b156dedef40b335f5733dd0f821", "alias": []},"blobname": "minimal-examples/http-server/minimal-http-server-tls/README.md", "blob": "# lws minimal http server with tls\n\n## build\n\n```\n $ cmake . \u0026\u0026 make\n```\n\n## usage\n\n```\n $ ./lws-minimal-http-server-tls\n[2018/03/20 13:23:13:0131] USER: LWS minimal http server TLS | visit https://localhost:7681\n[2018/03/20 13:23:13:0142] NOTICE: Creating Vhost 'default' port 7681, 1 protocols, IPv6 off\n[2018/03/20 13:23:13:0142] NOTICE: Using SSL mode\n[2018/03/20 13:23:13:0146] NOTICE: SSL ECDH curve 'prime256v1'\n[2018/03/20 13:23:13:0146] NOTICE: HTTP2 / ALPN enabled\n[2018/03/20 13:23:13:0195] NOTICE: lws_tls_client_create_vhost_context: doing cert filepath localhost-100y.cert\n[2018/03/20 13:23:13:0195] NOTICE: Loaded client cert localhost-100y.cert\n[2018/03/20 13:23:13:0195] NOTICE: lws_tls_client_create_vhost_context: doing private key filepath\n[2018/03/20 13:23:13:0196] NOTICE: Loaded client cert private key localhost-100y.key\n[2018/03/20 13:23:13:0196] NOTICE: created client ssl context for default\n[2018/03/20 13:23:14:0207] NOTICE: vhost default: cert expiry: 730459d\n```\n\nVisit https://localhost:7681\n\nBecause it uses a selfsigned certificate, you will have to make an exception for it in your browser.\n\n## Certificate creation\n\nThe selfsigned certs provided were created with\n\n```\necho -e \u0022GB\u005cnErewhon\u005cnAll around\u005cnlibwebsockets-test\u005cn\u005cnlocalhost\u005cnnone@invalid.org\u005cn\u0022 | openssl req -new -newkey rsa:4096 -days 36500 -nodes -x509 -keyout \u0022localhost-100y.key\u0022 -out \u0022localhost-100y.cert\u0022\n```\n\nthey cover \u0022localhost\u0022 and last 100 years from 2018-03-20.\n\nYou can replace them with commercial certificates matching your hostname.\n\n## HTTP/2\n\nIf you built lws with `-DLWS_WITH_HTTP2\u003d1` at cmake, this simple server is also http/2 capable\nout of the box. If the index.html was loaded over http/2, it will display an HTTP 2 png.\n","s":{"c":1750145178,"u": 100}}
],"g": 1536,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "7d0a"}