File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,15 +60,16 @@ export class Config {
6060
6161
6262 try {
63+ console . log ( "ssl-root-cas SKIPPED!!!!!!" ) ;
6364 // rootCas.addFile(path.join(__dirname, '../config/ssl/gd_bundle-g2-g1.crt'));
64- if ( Config . tls_ca !== "" ) {
65+ // if (Config.tls_ca !== "") {
6566 // var tls_ca: string = Buffer.from(Config.tls_ca, 'base64').toString('ascii')
6667 // var rootCas = require('ssl-root-cas/latest').create();
6768 // rootCas.push(tls_ca);
6869 // // rootCas.addFile( tls_ca );
6970 // https.globalAgent.options.ca = rootCas;
7071 // require('https').globalAgent.options.ca = rootCas;
71- }
72+ // }
7273 } catch ( error ) {
7374 console . log ( error ) ;
7475 }
Original file line number Diff line number Diff line change @@ -51,17 +51,18 @@ export class WebServer {
5151 key : Buffer . from ( Config . tls_key , 'base64' ) . toString ( 'ascii' )
5252 } ;
5353 }
54- var ca :string = Config . tls_ca ;
55- if ( ca !== "" ) {
56- if ( ca . indexOf ( "---" ) === - 1 ) {
57- ca = Buffer . from ( Config . tls_ca , 'base64' ) . toString ( 'ascii' ) ;
58- }
59- // if(ca.indexOf("---") > -1) {
60- // console.log(ca);
61- // options.ca = ca;
62- // }
63- // options.cert += "\n" + ca;
64- }
54+ console . log ( "Config.tls_ca SKIPPED!!!!!!" ) ;
55+ // var ca:string = Config.tls_ca;
56+ // if (ca!== "") {
57+ // if(ca.indexOf("---") === -1) {
58+ // ca = Buffer.from(ca, 'base64').toString('ascii');
59+ // }
60+ // // if(ca.indexOf("---") > -1) {
61+ // // console.log(ca);
62+ // // options.ca = ca;
63+ // // }
64+ // // options.cert += "\n" + ca;
65+ // }
6566 if ( Config . tls_passphrase !== "" ) {
6667 options . passphrase = Config . tls_passphrase ;
6768 }
You can’t perform that action at this time.
0 commit comments