Created
November 16, 2018 15:48
-
-
Save scott2449/52f441bec8bae950a4afc32a22a1e44e to your computer and use it in GitHub Desktop.
This file contains 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 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