Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Commit 28d0dc0

Browse files
committed
Fixes issue where path names have spaces
1 parent f31bb82 commit 28d0dc0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

openssl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ class OpenSSL {
167167
await this.addArg('newkey', `rsa:${this.cnf.bits}`)
168168
await this.addArg('nodes')
169169
await this.addArg('subj', this.formatSubj())
170-
await this.addArg('config', this.cnfPath)
170+
await this.addArg('config', `"${this.cnfPath}"`)
171171
await this.addArg('days', 365)
172-
await this.addArg('keyout', this.keyPath)
173-
await this.addArg('out', this.certPath)
172+
await this.addArg('keyout', `"${this.keyPath}"`)
173+
await this.addArg('out', `"${this.certPath}"`)
174174
this.spinner.indent = 0
175175
console.log('Done!\n')
176176
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openssl-web-development",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Simply create OpenSSL certificates for development use locally on your computer",
55
"keywords": [
66
"openssl",
@@ -23,7 +23,7 @@
2323
},
2424
"main": "./openssl.js",
2525
"scripts": {
26-
"test-cli": "cd test && node ../cli.js ./_out",
26+
"test-cli": "cd test/ && node ../cli.js ./_out",
2727
"help": "node cli.js --help"
2828
},
2929
"dependencies": {

0 commit comments

Comments
 (0)