Created
January 7, 2018 03:55
-
-
Save davewasmer/7f0ca1f17989f36c3db099f2e1eb5297 to your computer and use it in GitHub Desktop.
devcert test script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const devcert = require('devcert'); | |
| const https = require('https'); | |
| devcert.certificateFor('my-app.test').then((ssl) => { | |
| https.createServer(ssl, (req, res) => { | |
| res.write('<h1>Hello world - devcert is working</h1>'); | |
| res.end(); | |
| }).listen(3000); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment