Skip to content

Instantly share code, notes, and snippets.

@scott2449
Created November 16, 2018 15:48
Show Gist options
  • Save scott2449/52f441bec8bae950a4afc32a22a1e44e to your computer and use it in GitHub Desktop.
Save scott2449/52f441bec8bae950a4afc32a22a1e44e to your computer and use it in GitHub Desktop.
const privateKey = fs.readFileSync('webhook.key').toString();
const certificate = fs.readFileSync('webhook.crt').toString();
//…
const options = {key: privateKey, cert: certificate};
const server = https.createServer(options, app);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment