Skip to content

Commit

Permalink
fix: read passphrase from file as string (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliRezaBeigy authored Jul 2, 2022
1 parent 3e59bc1 commit c9455a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const startEndpoint = (endpoint, config, args, previous) => {
? https.createServer({
key: fs.readFileSync(args['--ssl-key']),
cert: fs.readFileSync(args['--ssl-cert']),
passphrase: sslPass ? fs.readFileSync(sslPass) : ''
passphrase: sslPass ? fs.readFileSync(sslPass, "utf8") : ''
}, serverHandler)
: http.createServer(serverHandler);

Expand Down

0 comments on commit c9455a3

Please sign in to comment.