Skip to content

Commit bac82ea

Browse files
authored
Merge pull request openiap#4 from skadefro/master
Fix ssl error
2 parents f26686d + 5571122 commit bac82ea

18 files changed

Lines changed: 380 additions & 13 deletions

.vscode/launch.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "attach",
7+
"name": "Attach to aiotdevred.openrpa.dk",
8+
"address": "aiotdevred.openrpa.dk",
9+
"port": 9229,
10+
"localRoot": "${workspaceFolder}",
11+
"remoteRoot": "/data"
12+
},
413
{
514
"type": "node",
615
"request": "attach",

OpenFlow/src/WebSocketClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export class WebSocketClient {
8888
var consumer = new amqp_consumer(this._logger, Config.amqp_url, queuename);
8989
consumer.OnMessage = this.OnMessage.bind(this);
9090
this.consumers.push(consumer);
91-
await consumer.connect(false, true);
91+
await consumer.connect(false, autoDelete);
9292
}
9393
public async CloseConsumer(queuename:string):Promise<void> {
9494
var index = -1;

OpenFlowNodeRED/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
"gulp-shell": "^0.7.0",
2323
"jsonwebtoken": "^8.5.1",
2424
"node-red": "^0.20.5",
25+
"node-red-contrib-auth-saml": "^1.0.8",
2526
"passport-google-oauth20": "^2.0.0",
2627
"passport-openid-connect": "^0.1.0",
2728
"passport-saml": "^1.0.0",
2829
"passport-saml-metadata": "^1.6.0",
29-
"ssl-root-cas": "^1.3.1",
3030
"winston": "^3.2.1"
3131
}
3232
}

OpenFlowNodeRED/src/Config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export class Config {
6060

6161

6262
try {
63-
// rootCas.addFile(path.join(__dirname, '../config/ssl/gd_bundle-g2-g1.crt'));
6463
if (Config.tls_ca !== "") {
6564
var tls_ca: string = Buffer.from(Config.tls_ca, 'base64').toString('ascii')
6665
var rootCas = require('ssl-root-cas/latest').create();

OpenFlowNodeRED/src/WebServer.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@ export class WebServer {
5454
var ca:string = Config.tls_ca;
5555
if (ca!== "") {
5656
if(ca.indexOf("---") === -1) {
57-
ca = Buffer.from(Config.tls_ca, 'base64').toString('ascii');
57+
ca = Buffer.from(ca, 'base64').toString('ascii');
58+
}
59+
if(ca.indexOf("---") > -1) {
60+
console.log(ca);
61+
options.ca = ca;
5862
}
59-
options.ca = ca;
6063
// options.cert += "\n" + ca;
6164
}
6265
if(Config.tls_passphrase!=="") {
@@ -86,7 +89,7 @@ export class WebServer {
8689
(profile:string | any, done:any)=> {
8790
// profile.permissions = "*";
8891
done(profile);
89-
});
92+
}, "");
9093
// this.settings.adminAuth = await noderedcontribauthsaml.configure(this._logger, Config.baseurl());clear
9194

9295
// settings.adminAuth = new noderedcontribauthopenid(this._logger, Config.baseurl());

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.66
1+
0.0.71

docs/INDEX.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/favicon.ico

237 KB
Binary file not shown.

docs/images/gears-1236578_1920.jpg

573 KB
Loading

docs/images/open_flow_org.svg

Lines changed: 21 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)