Skip to content

Commit

Permalink
Updated certificate names.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Thomas committed Feb 21, 2017
1 parent 4887cf5 commit bba0df4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aws-iot.js
Expand Up @@ -31,17 +31,17 @@ module.exports = function(RED) {
self.log("Attempt to connect to " + n.mode + " with " + clientId + " from: " + awsCerts);
if (n.mode == "shadow") {
self.device = require('aws-iot-device-sdk').thingShadow({
keyPath : path.join(awsCerts, '/' + clientId + '-private.pem.key'),
certPath : path.join(awsCerts, '/' + clientId + '-certificate.pem.crt'),
keyPath : path.join(awsCerts, '/' + clientId + '.private.key'),
certPath : path.join(awsCerts, '/' + clientId + '.cert.pem'),
caPath : path.join(awsCerts, '/root-CA.crt'),
clientId : clientId,
region : n.region,
protocol: 'mqtts'
});
} else {
self.device = require('aws-iot-device-sdk').device({
keyPath : path.join(awsCerts, '/' + clientId + '-private.pem.key'),
certPath : path.join(awsCerts, '/' + clientId + '-certificate.pem.crt'),
keyPath : path.join(awsCerts, '/' + clientId + '.private.key'),
certPath : path.join(awsCerts, '/' + clientId + '.cert.pem'),
caPath : path.join(awsCerts, '/root-CA.crt'),
clientId : clientId,
region : n.region,
Expand Down

0 comments on commit bba0df4

Please sign in to comment.