yutianhot / ssl-tools

Misc. tools to help with debugging WTF is going on with SSL connections and Ruby

Home Page:http://mislav.uniqpath.com/2013/07/ruby-openssl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSL tools

der2pem FILES...

remote-cert status.github.com | show-cert

create-cert example.com "My Organization" > cert_and_key.pem

ruby doctor.rb example.com:443

Sample output of doctor.rb:

/Users/mislav/.rbenv/versions/2.0.0-p247/bin/ruby (2.0.0-p247)
OpenSSL 1.0.1e 11 Feb 2013: /usr/local/etc/openssl
SSL_CERT_DIR=""
SSL_CERT_FILE=""

HEAD https://status.github.com:443
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

The server presented a certificate that could not be verified:
subject: /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
issuer: /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV Root CA
error code 20: unable to get local issuer certificate

Possible causes:
- `/usr/local/etc/openssl/cert.pem' does not exist
- `/usr/local/etc/openssl/certs/' is empty

About

Misc. tools to help with debugging WTF is going on with SSL connections and Ruby

http://mislav.uniqpath.com/2013/07/ruby-openssl/

License:Creative Commons Zero v1.0 Universal


Languages

Language:Ruby 81.0%Language:Shell 19.0%