{"id":2375,"date":"2020-03-11T12:34:02","date_gmt":"2020-03-11T12:34:02","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=2375"},"modified":"2020-08-28T08:57:35","modified_gmt":"2020-08-28T08:57:35","slug":"using-the-node-http-server-over-ssl","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=2375","title":{"rendered":"Using the node http-server over self signed ssl"},"content":{"rendered":"<p>Instructions for setting up http-server for https use may be found <a href=\"https:\/\/stackoverflow.com\/questions\/35127383\/npm-http-server-with-ssl\"><strong>here<\/strong><\/a>.<\/p>\n<p>To do this I used the same certificate\/key combination (but renamed as required) that I created for setting up ssl over WAMP, in my previous post <strong><a href=\"https:\/\/salientsoft.co.uk\/?p=2262\">here<\/a>. <\/strong>As with the WAMP post\/installation, the certificate\/key were created using openssl, which I downloaded <a href=\"https:\/\/slproweb.com\/products\/Win32OpenSSL.html\"><strong>here<\/strong><\/a>. The official openssl site may also be found <a href=\"https:\/\/wiki.openssl.org\/index.php\/Binaries\"><strong>here<\/strong><\/a>.<\/p>\n<p>From my previous WAMP installation, I took the certificate.crt\/private.key combination from the apache conf folder, and renamed them to cert.pem\/key.pem respectively, and placed them in a new &#8216;keys&#8217; folder conveniently accessible by the batch files that ran all the microapps. I then created ssl versions of all the batch files to run the microapps &#8211; an example of the fabric batch file follows:-<\/p>\n<blockquote><p>cd dist\\microapp-fabric-prototype<br \/>\nhttp-server -p 443 -S -C ..\\..\\..\\keys\\ss-localhost-cert.crt\u00a0-K ..\\..\\..\\keys\\ss-localhost-cert.key<\/p><\/blockquote>\n<p>https then worked fine and I was able to integrate with the live Yoti for age verification.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Instructions for setting up http-server for https use may be found here. To do this I used the same certificate\/key combination (but renamed as required) that I created for setting up ssl over WAMP, in my previous post here. As with the WAMP post\/installation, the certificate\/key were created using openssl, which I downloaded here. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[198,77],"tags":[],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2375"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2375"}],"version-history":[{"count":5,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2375\/revisions"}],"predecessor-version":[{"id":2496,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2375\/revisions\/2496"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}