Skip to content

Commit

Permalink
Merge pull request #111 from KunalAggarwal/master
Browse files Browse the repository at this point in the history
Handling of key.pem when path contains spaces
  • Loading branch information
adambullmer authored Mar 22, 2021
2 parents 99cbd98 + 7238cbf commit 67a3077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/signing-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports.generateKey = () => execSync('openssl genrsa 2048 | openssl pkcs8 -topk8

exports.hashKey = (keyFile) =>
new Promise((resolve, reject) => {
exec(`openssl rsa -in ${keyFile} -pubout -outform DER | openssl base64 -A`, (error, stdout) => {
exec(`openssl rsa -in "${keyFile}" -pubout -outform DER | openssl base64 -A`, (error, stdout) => {
if (error) {
// node couldn't execute the command
return reject(error)
Expand Down

0 comments on commit 67a3077

Please sign in to comment.