excon: Unable to verify certificate (SSL)
Since the 0.25.0 update yesterday, SSL certificate verification hasn’t been working in conjunction with the Fog gem. When trying to connect to S3 I’ve been seeing the following error:
Excon::Errors::SocketError: cloud_remote_file[/usr/src/autofs4.tgz] (autofs::module_hack line 10) had an error: Excon::Errors::SocketError: Unable to verify certificate, please set `Excon.defaults[:ssl_ca_path] = path_to_certs`, `Excon.d
efaults[:ssl_ca_file] = path_to_file`, or `Excon.defaults[:ssl_verify_peer] = false` (less secure).
Downgrading to Excon 0.24.0 fixed the issue.
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 40 (18 by maintainers)
It’s worth mentioning that
Excon.defaults[:ssl_verify_peer] = falseis insecure and should not be used in production.Sorry to raise this from the dead, but it’s the top result for google
excon defaults ssl_ca_file, and we’ve got to set a good example. 😃