No option to ignore self-signed certs
Hi, I'm using this against s3compatible storage (Eucalyptus) and have a cloud configured with SSL for the endpoints but I'm using a self-signed cert. I get this error:
# s3motion -b --client emeacloud Could not retrieve buckets. Error: NetworkingError: DEPTH_ZERO_SELF_SIGNED_CERT
Looking at the options list it seems there is no way to tell the tool to ignore a self-signed cert (or accept it regardless).
I never tested this with a self-signed cert. Let me dig around and see what I can come up with
Thanks @kacole2. I'm not much of a node.js person but it doesn't look too promising: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Config.html#constructor-property
Which would suggest for testing purposes either (a) use a valid signed cert or (b) have a mechanism which allows for the option of SSL or not ala:
sslEnabled: awsClientArgs.ssl
p.s. I'm in favour of adding (b) :D
i'll have to get access to a self-signed cert environment to test it out and see if i can pipe in the sslEnabled ⇒ Boolean (readwrite) variable.
In the mean time, does Eucalyptus have a non-SSL endpoint? you can try using http://my-eucalyptus.endpoint:80 and that will make the transfers go through an unsecured transfer
Yup, that works just fine, thanks for the pointer there.
Ref self-signed: aws.NodeHttpClient.sslAgent.options.rejectUnauthorized = false