safely-serve 0.0.2 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/safely-serve CHANGED
@@ -37,10 +37,14 @@ _msg_info =
37
37
  _libcrash._msg_info;
38
38
  _msg_error =
39
39
  _libcrash._msg_error;
40
+ _path_join =
41
+ _libcrash._path_join;
40
42
  const
41
43
  _libsafely_serve_module =
42
44
  require(
43
- "./safely-serve");
45
+ "./libsafely-serve");
46
+ _path_encode =
47
+ _libsafely_serve_module._path_encode;
44
48
  _safely_serve =
45
49
  _libsafely_serve_module._safely_serve;
46
50
 
@@ -48,11 +52,39 @@ function
48
52
  _global_variables() {
49
53
  app_name =
50
54
  "safely-serve";
51
- target_certificate =
52
- "";
53
55
  target_directory =
54
56
  "";
55
- key_private =
57
+ listen_uris =
58
+ [];
59
+ target_port =
60
+ "";
61
+ index_redirect =
62
+ "";
63
+ debug_enabled =
64
+ "";
65
+ config_file =
66
+ "";
67
+ logging_disabled =
68
+ "";
69
+ cors_enabled =
70
+ "";
71
+ clipboard_disabled =
72
+ "";
73
+ compression_disabled =
74
+ "";
75
+ etag_disabled =
76
+ "";
77
+ symlinks_enabled =
78
+ "";
79
+ ssl_cert =
80
+ "";
81
+ ssl_key =
82
+ "";
83
+ ssl_pass =
84
+ "";
85
+ cert_gen =
86
+ "";
87
+ port_switching_disabled =
56
88
  "";
57
89
  keys_length =
58
90
  "";
@@ -74,34 +106,111 @@ function
74
106
  "";
75
107
  organization_unit =
76
108
  "";
77
- output_file =
109
+ cache_dir =
78
110
  "";
79
111
  quiet =
80
112
  "";
81
113
  }
82
114
 
83
115
  function
84
- _target_certificate_auto_detect() {
116
+ _cache_dir_auto_detect() {
117
+ return _homedir() +
118
+ `/.cache/${app_name}`;
119
+ }
120
+
121
+ function
122
+ _work_dir_get(
123
+ _target_directory) {
85
124
  let
86
- _encoded_target,
87
- _target_certificate;
88
- _target_certificate =
89
- target_certificate;
90
- if ( _target_certificate == "" ) {
91
- _encoded_target =
92
- _sha256sum(
93
- target_directory);
94
- _target_certificate =
95
- _homedir() +
96
- `/.cache/${app_name}/${_encoded_target}`;
97
- }
98
- return _target_certificate;
125
+ _work_dir;
126
+ _target_directory_encoded =
127
+ _path_encode(
128
+ target_directory);
129
+ _work_dir =
130
+ _path_join( [
131
+ cache_dir,
132
+ _target_directory_encoded ]);
133
+ return _work_dir;
134
+ }
135
+
136
+ function
137
+ _ssl_config_auto_detect() {
138
+ let
139
+ _work_dir;
140
+ _work_dir =
141
+ _work_dir_get(
142
+ target_directory);
143
+ if ( ssl_cert == "" ) {
144
+ ssl_cert =
145
+ `${_work_dir}/cert.pem`;
146
+ if ( cert_gen == "" ) {
147
+ cert_gen =
148
+ "y";
149
+ }
150
+ }
151
+ else {
152
+ cert_gen =
153
+ "n";
154
+ }
155
+ if ( ssl_cert == "" ) {
156
+ ssl_cert =
157
+ `${_work_dir}/cert.pem`;
158
+ }
159
+ if ( ssl_key == "" ) {
160
+ ssl_key =
161
+ `${_work_dir}/key.pem`;
162
+ }
99
163
  }
100
164
 
101
165
  function
102
166
  _overrides_set() {
103
- target_certificate =
104
- _target_certificate_auto_detect();
167
+ cache_dir =
168
+ _cache_dir_auto_detect();
169
+ if ( target_directory == "" ) {
170
+ target_directory =
171
+ process.cwd();
172
+ }
173
+ if ( target_port == "" ) {
174
+ target_port =
175
+ "3000";
176
+ }
177
+ if ( index_redirect == "" ) {
178
+ index_redirect =
179
+ "y";
180
+ }
181
+ if ( logging_disabled == "" ) {
182
+ logging_disabled =
183
+ "n";
184
+ }
185
+ if ( cors_enabled == "" ) {
186
+ cors_enabled =
187
+ "n";
188
+ }
189
+ if ( clipboard_disabled == "" ) {
190
+ clipboard_disabled =
191
+ "n";
192
+ }
193
+ if ( compression_disabled == "" ) {
194
+ compression_disabled =
195
+ "n";
196
+ }
197
+ if ( etag_disabled == "" ) {
198
+ etag_disabled =
199
+ "n";
200
+ }
201
+ if ( symlinks_enabled == "" ) {
202
+ symlinks_enabled =
203
+ "n";
204
+ }
205
+ _ssl_config_auto_detect();
206
+ if ( port_switching_disabled == "" ) {
207
+ port_switching_disabled =
208
+ "n";
209
+ }
210
+ if ( keys_length == "" ) {
211
+ keys_length =
212
+ "4096";
213
+ }
105
214
  if ( validity_min == "" ) {
106
215
  validity_min =
107
216
  new Date();
@@ -141,16 +250,6 @@ function
141
250
  organization_unit =
142
251
  "Index Development Team";
143
252
  }
144
- if ( key_private == "" ) {
145
- key_private =
146
- process.cwd() +
147
- "/key.pem";
148
- }
149
- if ( output_file == "" ) {
150
- output_file =
151
- process.cwd() +
152
- "/cert.pem";
153
- }
154
253
  }
155
254
 
156
255
  function
@@ -162,6 +261,24 @@ function
162
261
  `${app_name} configuration:`,
163
262
  ` Runtime environment: ${runtime_environment}`,
164
263
  ` Target directory: ${target_directory}`,
264
+ ` Serve options:`,
265
+ ` Listen URIs: ${listen_uris}`,
266
+ ` Target port: ${target_port}`,
267
+ ` Index redirect: ${index_redirect}`,
268
+ ` Configuration file: ${config_file}`,
269
+ ` Quiet stdout log: ${logging_disabled}`,
270
+ ` Cors: ${cors_enabled}`,
271
+ ` No clipboard: ${clipboard_disabled}`,
272
+ ` No compression: ${compression_disabled}`,
273
+ ` Disable ETag: ${etag_disabled}`,
274
+ ` Symlinks: ${symlinks_enabled}`,
275
+ ` No port switching: ${port_switching_disabled}`,
276
+ ` SSL options:`,
277
+ ` Generate certificate: ${cert_gen}`,
278
+ ` SSL Certificate: ${ssl_cert}`,
279
+ ` SSL private key: ${ssl_key}`,
280
+ ` Key password: ${ssl_pass}`,
281
+ ` Certificate options:`,
165
282
  ` Key length: ${keys_length}`,
166
283
  ` Serial number: ${serial_number}`,
167
284
  ` Valid after: ${validity_min}`,
@@ -172,7 +289,6 @@ function
172
289
  ` Locality: ${locality_name}`,
173
290
  ` Organization: ${organization_name}`,
174
291
  ` Organization unit: ${organization_unit}`,
175
- ` Output file: ${output_file}`,
176
292
  ];
177
293
  for ( _line of _text ) {
178
294
  _msg_info(
@@ -188,47 +304,96 @@ function
188
304
  _text;
189
305
  _text = [
190
306
  "",
191
- "Serve extension which self-generate a SSL certificate at runtime.",
307
+ "Serve extension which generates a self-signed SSL certificate at runtime.",
192
308
  "",
193
309
  "Usage:",
194
310
  "",
195
311
  " safely-serve",
196
312
  " [options]",
197
- " [serve-options]",
313
+ " <target-directory>",
198
314
  "",
199
- " options:",
200
- " -i, --key-private=FILE Use existing private key.",
201
- ` Default: '${key_private}'`,
202
- " -l, --keys-length=N Keys pair length.",
203
- ` Default: '${keys_length}'`,
204
- " -o, --output-file=FILE Set output file.",
205
- ` Default: '${output_file}'`,
315
+ " serve options:",
316
+ " -l, --listen=URI Specify a URI endpoint on",
317
+ " which to listen (see below);",
318
+ " more than one may be specified to",
319
+ " listen in multiple places.",
320
+ ` Default: '${listen_uris}'`,
321
+ " -p, --port=PORT Specify custom port",
322
+ ` Default: '${target_port}'`,
323
+ " -s, --single Rewrite all not-found requests",
324
+ " to 'index.html'.",
325
+ ` Default: '${index_redirect}'`,
326
+ " -d, --debug Show debugging information.",
327
+ ` Default: '${debug_enabled}'`,
328
+ " -c, --config=PATH Specify custom path to 'serve.json'.",
329
+ ` Default: '${config_file}'`,
330
+ " -L, --no-request-logging Do not log any request information",
331
+ " to the console.",
332
+ ` Default: '${logging_disabled}'`,
333
+ " -C, --cors Enable CORS, sets",
334
+ " 'Access-Control-Allow-Origin'",
335
+ " to '*'.",
336
+ ` Default: '${cors_enabled}'`,
337
+ " -n, --no-clipboard Do not copy the local address",
338
+ " to the clipboard.",
339
+ ` Default: '${clipboard_disabled}'`,
340
+ " -u, --no-compression Do not compress files.",
341
+ ` Default: '${compression_disabled}'`,
342
+ " -e, --no-etag Send 'Last-Modified' header",
343
+ " instead of `ETag`.",
344
+ ` Default: '${etag_disabled}'`,
345
+ " -S, --symlinks Resolve symlinks instead of",
346
+ " showing 404 errors.",
347
+ ` Default: '${symlinks_enabled}'`,
348
+ " --no-port-switching Do not open a port other than",
349
+ " the one specified when it's taken.",
350
+ ` Default: '${port_switching_disabled}'`,
351
+ " ssl options:",
352
+ " -g, --gen-cert If enabled, generate self-signed certificate",
353
+ " at the specified path.",
354
+ ` Default: '${cert_gen}'`,
355
+ " -I, --ssl-cert=PATH Optional path to an SSL/TLS",
356
+ " certificate to serve with HTTPS.",
357
+ " Supported formats: PEM (default)",
358
+ " and PKCS12 (PFX)",
359
+ ` Default: '${ssl_cert}'`,
360
+ " -i, --ssl-key=PATH Optional path to the SSL/TLS",
361
+ " certificate's private key.",
362
+ " Applicable only for PEM certificates.",
363
+ ` Default: '${ssl_key}'`,
364
+ " -k --ssl-pass=PATH Optional path to the SSL/TLS",
365
+ " certificate's passphrase.",
366
+ ` Default: '${ssl_pass}'`,
206
367
  "",
207
- " validity options:",
208
- " -B, --validity-start=DATE Set activation date.",
209
- ` Default: '${validity_min}'`,
210
- " -E, --validity-end=DATE Set expiration date.",
211
- ` Default: '${validity_max}'`,
212
- "",
213
- " identity options:",
214
- " -D, --domain-name=DOMAIN Set domain name.",
215
- ` Default: '${domain_name}'`,
216
- " -C, --country-name=COUNTRY Set country name.",
217
- ` Default: '${country_name}'`,
218
- " -S, --state-name=STATE Set state name.",
219
- ` Default: '${state_name}'`,
220
-
221
- " -L, --locality-name=LOCALITY Set locality name.",
222
- ` Default: '${locality_name}'`,
223
- " -O, --organization-name=ORG Set organization name.",
224
- ` Default: '${organization_name}'`,
225
- " -U, --organization-unit=UNIT Set organization unit.",
226
- ` Default: '${organization_unit}'`,
227
- " -s, --serial-number=SERIAL Set serial number.",
228
- ` Default: '${serial_number}'`,
368
+ " certificate options:",
369
+ " -N, --keys-length=N Generated keys pair length.",
370
+ ` Default: '${keys_length}'`,
371
+ " -B, --validity-min=DATE Set activation date.",
372
+ ` Default: '${validity_min}'`,
373
+ " -E, --validity-max=DATE Set expiration date.",
374
+ ` Default: '${validity_max}'`,
375
+ " -D, --domain-name=DOMAIN Set domain name.",
376
+ ` Default: '${domain_name}'`,
377
+ " -C, --country-name=COUNTRY Set country name.",
378
+ ` Default: '${country_name}'`,
379
+ " -S, --state-name=STATE Set state name.",
380
+ ` Default: '${state_name}'`,
381
+ " --locality-name=LOCALITY Set locality name.",
382
+ ` Default: '${locality_name}'`,
383
+ " -O, --organization-name=ORG Set organization name.",
384
+ ` Default: '${organization_name}'`,
385
+ " -U, --organization-unit=UNIT Set organization unit.",
386
+ ` Default: '${organization_unit}'`,
387
+ " -X, --serial-number=SERIAL Set serial number.",
388
+ ` Default: '${serial_number}'`,
229
389
  "",
230
- " -h --help This message.",
231
- " -v --verbose Enable verbose output.",
390
+ " application options:",
391
+ " -N, --keys-length=N Generated keys pair length.",
392
+ " -W, --cache-dir Work directory.",
393
+ ` Default: '${cache_dir}'`,
394
+ " -v, --version Displays the current version of",
395
+ " Safely Serve.",
396
+ " -h, --help Shows this help message.",
232
397
  "",
233
398
  ];
234
399
  for ( _line of _text ) {
@@ -258,6 +423,20 @@ function
258
423
  }
259
424
  }
260
425
 
426
+ function
427
+ _cmdline_parse_debug(
428
+ _argv) {
429
+ debug_enabled =
430
+ _opt_read(
431
+ _argv,
432
+ "d",
433
+ "debug");
434
+ if ( debug_enabled ) {
435
+ quiet =
436
+ "n";
437
+ }
438
+ }
439
+
261
440
  function
262
441
  _input_args_check(
263
442
  _argv) {
@@ -273,144 +452,207 @@ function
273
452
  }
274
453
  }
275
454
 
455
+ function
456
+ _target_directory_auto_detect(
457
+ _argv) {
458
+ let
459
+ _target_directory;
460
+ _target_directory =
461
+ _argv[
462
+ "_"][
463
+ 0];
464
+ if ( typeof _target_directory === 'undefined' ) {
465
+ _target_directory =
466
+ "";
467
+ return _target_directory;_target_directory =
468
+ process.pwd();
469
+ }
470
+ return _target_directory;
471
+ }
472
+
473
+ function
474
+ _opt_read(
475
+ _argv,
476
+ _letter_opt,
477
+ _word_opt,
478
+ _type) {
479
+ let
480
+ _value;
481
+ if ( _letter_opt in _argv &&
482
+ _word_opt in _argv ) {
483
+ _msg =
484
+ `You can only use ` +
485
+ `'${_letter_opt}' or '--${_word-opt}'`;
486
+ _msg_error(
487
+ _msg,
488
+ 1);
489
+ }
490
+ if ( _letter_opt in _argv ) {
491
+ _value =
492
+ _argv[
493
+ _letter_opt];
494
+ }
495
+ if ( _word_opt in _argv ) {
496
+ _value =
497
+ _argv[
498
+ _word_opt];
499
+ }
500
+ if ( typeof _value === 'undefined' ) {
501
+ _value =
502
+ "";
503
+ if ( _type === "list" ) {
504
+ _value =
505
+ [];
506
+ }
507
+ }
508
+ return _value;
509
+ }
510
+
276
511
  function
277
512
  _cmdline_parse() {
278
513
  let
279
514
  _argv,
280
- _msg;
515
+ _msg,
516
+ _target_directory;
281
517
  _argv =
282
518
  _yargv_get();
283
519
  quiet =
284
520
  "y";
285
521
  runtime_environment =
286
522
  "node";
523
+ _cmdline_parse_debug(
524
+ _argv);
287
525
  _cmdline_parse_help(
288
526
  _argv);
289
- // _input_args_check(
290
- // _argv);
291
- // input_file =
292
- // _argv[
293
- // "_"][
294
- // 0];
295
- if ( "i" in _argv ) {
296
- key_private =
297
- _argv[
298
- "i"];
299
- }
300
- if ( "key-private" in _argv ) {
301
- key_private =
302
- _argv[
303
- "key-private"];
304
- }
305
- if ( "l" in _argv ) {
306
- keys_length =
307
- _argv[
308
- "l"];
309
- }
310
- if ( "keys-length" in _argv ) {
311
- keys_length =
312
- _argv[
313
- "keys-length"];
314
- }
315
- if ( "B" in _argv ) {
316
- validity_min =
317
- _argv[
318
- "B"];
319
- }
320
- if ( "validity-max" in _argv ) {
321
- validity_max =
322
- _argv[
323
- "validity-max"];
324
- }
325
- if ( "D" in _argv ) {
326
- domain_name =
327
- _argv[
328
- "D"];
329
- }
330
- if ( "domain-name" in _argv ) {
331
- domain_name =
332
- _argv[
333
- "domain-name"];
334
- }
335
- if ( "C" in _argv ) {
336
- country_name =
337
- _argv[
338
- "C"];
339
- }
340
- if ( "country-name" in _argv ) {
341
- country_name =
342
- _argv[
343
- "country-name"];
344
- }
345
- if ( "S" in _argv ) {
346
- state_name =
347
- _argv[
348
- "S"];
349
- }
350
- if ( "state-name" in _argv ) {
351
- country_name =
352
- _argv[
353
- "state-name"];
354
- }
355
- if ( "L" in _argv ) {
356
- locality_name =
357
- _argv[
358
- "L"];
359
- }
360
- if ( "locality-name" in _argv ) {
361
- locality_name =
362
- _argv[
363
- "locality-name"];
364
- }
365
- if ( "O" in _argv ) {
366
- organization_name =
367
- _argv[
368
- "O"];
369
- }
370
- if ( "organization-name" in _argv ) {
371
- organization_name =
372
- _argv[
373
- "organization-name"];
374
- }
375
- if ( "U" in _argv ) {
376
- organization_unit =
377
- _argv[
378
- "U"];
379
- }
380
- if ( "organization-unit" in _argv ) {
381
- organization_unit =
382
- _argv[
383
- "organization-unit"];
384
- }
385
- if ( "o" in _argv ) {
386
- output_file =
387
- _argv[
388
- "o"];
389
- }
390
- if ( "output-file" in _argv ) {
391
- output_file =
392
- _argv[
393
- "output-file"];
394
- }
395
- if ( "s" in _argv ) {
396
- serial_number =
397
- _argv[
398
- "s"];
399
- }
400
- if ( "serial-number" in _argv ) {
401
- serial_number =
402
- _argv[
403
- "serial-number"];
404
- }
405
- verbose =
406
- _argv[
407
- "verbose"] ||
408
- _argv[
409
- "v"];
410
- if ( verbose ) {
411
- quiet =
412
- "n";
413
- }
527
+ target_directory =
528
+ _target_directory_auto_detect(
529
+ _argv);
530
+ listen_uris =
531
+ _opt_read(
532
+ _argv,
533
+ "l",
534
+ "listen",
535
+ "list");
536
+ target_port =
537
+ _opt_read(
538
+ _argv,
539
+ "p",
540
+ "port");
541
+ target_port =
542
+ _opt_read(
543
+ _argv,
544
+ "p",
545
+ "port");
546
+ index_redirect =
547
+ _opt_read(
548
+ _argv,
549
+ "s",
550
+ "single");
551
+ config_file =
552
+ _opt_read(
553
+ _argv,
554
+ "c",
555
+ "config");
556
+ logging_disabled =
557
+ _opt_read(
558
+ _argv,
559
+ "L",
560
+ "no-request-logging");
561
+ cors_enabled =
562
+ _opt_read(
563
+ _argv,
564
+ "C",
565
+ "cors");
566
+ clipboard_disabled =
567
+ _opt_read(
568
+ _argv,
569
+ "n",
570
+ "no-clipboard");
571
+ compression_disabled =
572
+ _opt_read(
573
+ _argv,
574
+ "u",
575
+ "no-compression");
576
+ etag_disabled =
577
+ _opt_read(
578
+ _argv,
579
+ "e",
580
+ "no-etag");
581
+ symlinks_enabled =
582
+ _opt_read(
583
+ _argv,
584
+ "S",
585
+ "symlinks");
586
+ ssl_cert =
587
+ _opt_read(
588
+ _argv,
589
+ "I",
590
+ "ssl-cert");
591
+ ssl_key =
592
+ _opt_read(
593
+ _argv,
594
+ "i",
595
+ "ssl-key");
596
+ ssl_pass =
597
+ _opt_read(
598
+ _argv,
599
+ "k",
600
+ "ssl-pass");
601
+ keys_length =
602
+ _opt_read(
603
+ _argv,
604
+ "l",
605
+ "keys-length");
606
+ validity_min =
607
+ _opt_read(
608
+ _argv,
609
+ "B",
610
+ "validity-min");
611
+ validity_max =
612
+ _opt_read(
613
+ _argv,
614
+ "E",
615
+ "validity-max");
616
+ domain_name =
617
+ _opt_read(
618
+ _argv,
619
+ "D",
620
+ "domain-name");
621
+ country_name =
622
+ _opt_read(
623
+ _argv,
624
+ "C",
625
+ "country-name");
626
+ state_name =
627
+ _opt_read(
628
+ _argv,
629
+ "S",
630
+ "state-name");
631
+ locality_name =
632
+ _opt_read(
633
+ _argv,
634
+ "L",
635
+ "locality-name");
636
+ organization_name =
637
+ _opt_read(
638
+ _argv,
639
+ "O",
640
+ "organization-name");
641
+ organization_unit =
642
+ _opt_read(
643
+ _argv,
644
+ "U",
645
+ "organization-unit");
646
+ serial_number =
647
+ _opt_read(
648
+ _argv,
649
+ "X",
650
+ "serial-number");
651
+ cache_dir =
652
+ _opt_read(
653
+ _argv,
654
+ "W",
655
+ "cache-dir");
414
656
  }
415
657
 
416
658
  function
@@ -421,17 +663,64 @@ function
421
663
  "browser";
422
664
  _argv =
423
665
  _argv_url_get();
424
- key_private =
666
+ target_directory =
425
667
  _argv_url_get(
426
- "key_private")[
668
+ "target_directory")[
427
669
  0];
428
- keys_length =
670
+ listen_uris =
429
671
  _argv_url_get(
430
- "keys_length")[
672
+ "listen");
673
+ target_port =
674
+ _argv_url_get(
675
+ "port")[
676
+ 0];
677
+ index_redirect =
678
+ _argv_url_get(
679
+ "single")[
680
+ 0];
681
+ config_file =
682
+ _argv_url_get(
683
+ "config_file")[
684
+ 0];
685
+ compression_disabled =
686
+ _argv_url_get(
687
+ "no_compression")[
688
+ 0];
689
+ etag_disabled =
690
+ _argv_url_get(
691
+ "no_etag")[
692
+ 0];
693
+ logging_disabled =
694
+ _argv_url_get(
695
+ "no_request_logging")[
696
+ 0];
697
+ cors_enabled =
698
+ _argv_url_get(
699
+ "cors")[
431
700
  0];
432
- output_file =
701
+ clipboard_disabled =
433
702
  _argv_url_get(
434
- "output_file")[
703
+ "no_clipboard")[
704
+ 0];
705
+ ssl_cert =
706
+ _argv_url_get(
707
+ "ssl_cert")[
708
+ 0];
709
+ port_switching_disabled =
710
+ _argv_url_get(
711
+ "no_compression")[
712
+ 0];
713
+ symlinks_enabled =
714
+ _argv_url_get(
715
+ "symlinks")[
716
+ 0];
717
+ ssl_key =
718
+ _argv_url_get(
719
+ "ssl_key")[
720
+ 0];
721
+ keys_length =
722
+ _argv_url_get(
723
+ "keys_length")[
435
724
  0];
436
725
  validity_min =
437
726
  _argv_url_get(
@@ -465,6 +754,10 @@ function
465
754
  _argv_url_get(
466
755
  "serial_number")[
467
756
  0];
757
+ cache_dir =
758
+ _argv_url_get(
759
+ "cache_dir")[
760
+ 0];
468
761
  quiet =
469
762
  _argv_url_get(
470
763
  "quiet");
@@ -485,7 +778,23 @@ else {
485
778
  _overrides_set();
486
779
  _config_show();
487
780
  app_opts = [
488
- key_private,
781
+ target_directory,
782
+ listen_uris,
783
+ target_port,
784
+ index_redirect,
785
+ debug_enabled,
786
+ config_file,
787
+ logging_disabled,
788
+ cors_enabled,
789
+ clipboard_disabled,
790
+ compression_disabled,
791
+ etag_disabled,
792
+ symlinks_enabled,
793
+ cert_gen,
794
+ ssl_cert,
795
+ ssl_key,
796
+ ssl_pass,
797
+ port_switching_disabled,
489
798
  keys_length,
490
799
  serial_number,
491
800
  validity_min,
@@ -495,8 +804,7 @@ app_opts = [
495
804
  state_name,
496
805
  locality_name,
497
806
  organization_name,
498
- organization_unit,
499
- output_file,
807
+ organization_unit
500
808
  ];
501
809
  _safely_serve.apply(
502
810
  null,