fix ssl try catch error
This commit is contained in:
parent
d21d11b622
commit
47d20b8192
@ -144,13 +144,11 @@ var options;
|
|||||||
try {
|
try {
|
||||||
try {
|
try {
|
||||||
// In case it's a real certificate: add CA chain cersts (TODO: use array if required)
|
// In case it's a real certificate: add CA chain cersts (TODO: use array if required)
|
||||||
/* Uncomment if real certificate is required and available
|
|
||||||
var ca = fs.readFileSync ('keys/ca_cert.pem');
|
var ca = fs.readFileSync ('keys/ca_cert.pem');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
ca = undefined;
|
ca = undefined;
|
||||||
console.log ("Note: Can't read CA bundle: "+e);
|
console.log ("Note: Can't read CA bundle: "+e);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
options = {
|
options = {
|
||||||
key: fs.readFileSync ('keys/omkey.pem'),
|
key: fs.readFileSync ('keys/omkey.pem'),
|
||||||
cert: fs.readFileSync ('keys/certificate.pem'),
|
cert: fs.readFileSync ('keys/certificate.pem'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user