Skip to content

Instantly share code, notes, and snippets.

@breath103
Created January 27, 2014 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breath103/8641954 to your computer and use it in GitHub Desktop.
Save breath103/8641954 to your computer and use it in GitHub Desktop.
When getting SSL error from excon
p:
Error: Unable to verify certificate, please set `Excon.defaults[:ssl_ca_path] = path_to_certs`, `ENV['SSL_CERT_DIR'] = path_to_certs`, `Excon.defaults[:ssl_ca_file] = path_to_file`, `ENV['SSL_CERT_FILE'] = path_to_file` or `Excon.defaults[:ssl_verify_peer] = false` (less secure). (Excon::Errors::SocketError)
s:
export SSL_CERT_FILE=/usr/local/etc/openssl/cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment