File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ var optimist = require("optimist")
39
39
40
40
. string ( "cacert" ) . describe ( "cacert" , "Path to a SSL CA certificate." )
41
41
42
+ . string ( "pfx" ) . describe ( "pfx" , "Path to a SSL pfx file." )
43
+
44
+ . string ( "pfx-passphrase" ) . describe ( "pfx-passphrase" , "Passphrase for pfx file." )
45
+
42
46
. string ( "content-base" ) . describe ( "content-base" , "A directory or URL to serve HTML content from." )
43
47
44
48
. string ( "content-base-target" ) . describe ( "content-base-target" , "Proxy requests to this target." )
@@ -152,6 +156,12 @@ if(argv["key"])
152
156
if ( argv [ "cacert" ] )
153
157
options . ca = fs . readFileSync ( path . resolve ( argv [ "cacert" ] ) ) ;
154
158
159
+ if ( argv [ "pfx" ] )
160
+ options . pfx = fs . readFileSync ( path . resolve ( argv [ "pfx" ] ) ) ;
161
+
162
+ if ( argv [ "pfx-passphrase" ] )
163
+ options . pfxPassphrase = argv [ "pfx-passphrase" ] ;
164
+
155
165
if ( argv [ "inline" ] )
156
166
options . inline = true ;
157
167
Original file line number Diff line number Diff line change @@ -288,7 +288,9 @@ function Server(compiler, options) {
288
288
options . https = {
289
289
key : options . key ,
290
290
cert : options . cert ,
291
- ca : options . ca
291
+ ca : options . ca ,
292
+ pfx : options . pfx ,
293
+ passphrase : options . pfxPassphrase
292
294
} ;
293
295
}
294
296
You can’t perform that action at this time.
0 commit comments