Skip to content

Instantly share code, notes, and snippets.

@davewasmer
Created January 7, 2018 03:55
Show Gist options
  • Select an option

  • Save davewasmer/7f0ca1f17989f36c3db099f2e1eb5297 to your computer and use it in GitHub Desktop.

Select an option

Save davewasmer/7f0ca1f17989f36c3db099f2e1eb5297 to your computer and use it in GitHub Desktop.
devcert test script
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