I think it might be related to certificates that need to be applied to particle-cli in the same way that I applied them to spark-server, but I can't figure out what I should change. Do you have any suggestions?
Thanks again!
Sounds like the certificate you’re using wasn’t signed by a certificate authority, so the CLI can’t tell if its genuine or not. You can modify the CLI and tell it you don’t care about the authenticity of the certificate by adding a param to the request:
// in lib/ApiClient.js
//PUT /v1/devices/{DEVICE_ID}
flashDevice: function (coreID, files) {
console.log('attempting to flash firmware to your device ' + coreID);
var that = this;
var dfd = when.defer();
var r = request.put(this.baseUrl + '/v1/devices/' + coreID + '?access_token=' + this._access_token, {
json: true,
// add this line: will tell it to ignore a bad certificate -- don't forget the comma above!
rejectUnauthorized: false
},