File tree 1 file changed +13
-6
lines changed
1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -436,27 +436,34 @@ function pingCert() {
436
436
} , function ( aErr , aRes , aBody ) {
437
437
if ( aErr ) {
438
438
if ( aErr . cert ) {
439
+ // Encryption available with Error thrown since internal TLS request on localhost
440
+ // isn't usually a valid registered domain however external requests can be blocked by
441
+ // browsers as well as false credentials supplied
439
442
440
443
// Test for time limit of expiration
441
444
tripServerOnCertExpire ( aErr . cert . valid_to ) ;
442
445
443
446
} else {
444
- console . warn ( colors . red ( aErr ) ) ;
445
- console . warn (
446
- colors . red ( 'Most likely the server is not running on port or port blocked by firewall' )
447
- ) ;
447
+ console . warn ( [
448
+ colors . red ( aErr ) ,
449
+ colors . red ( 'Server may not be running on specified port or port blocked by firewall' ) ,
450
+ colors . red ( 'Encryption not available' )
451
+
452
+ ] . join ( '\n' ) ) ;
448
453
}
449
454
return ;
450
455
}
451
456
452
457
if ( aRes . req . connection . getPeerCertificate ) {
453
- console . warn ( colors . red ( 'Firewall pass-through' ) ) ; // NOTE: server blocks this currently
458
+ // Encryption available
459
+ // NOTE: Server blocks this currently
460
+ console . warn ( colors . red ( 'Firewall pass-through detected' ) ) ;
454
461
455
462
// Test for time limit of expiration
456
463
tripServerOnCertExpire ( aRes . req . connection . getPeerCertificate ( ) . valid_to ) ;
457
464
458
465
} else {
459
- console . log ( colors . cyan ( 'No certificates found ') ) ;
466
+ console . warn ( colors . yellow ( 'Encryption not available ') ) ;
460
467
}
461
468
} ) ;
462
469
} ;
You can’t perform that action at this time.
0 commit comments