Skip to content

Instantly share code, notes, and snippets.

View karlentwistle's full-sized avatar

Karl Entwistle karlentwistle

View GitHub Profile
@karlentwistle
karlentwistle / gist:10735737
Created April 15, 2014 14:08
Output from doctor
ruby doctor.rb
/usr/bin/ruby1.8 (1.8.6)
OpenSSL 0.9.8g 19 Oct 2007: /usr/lib/ssl
SSL_CERT_DIR=""
SSL_CERT_FILE=""
HEAD https://status.github.com:443
OpenSSL::SSL::SSLError: certificate verify failed
The server presented a certificate that could not be verified:
@karlentwistle
karlentwistle / gist:10735753
Created April 15, 2014 14:08
Update / install packages
sudo apt-get update && sudo apt-get install
@karlentwistle
karlentwistle / gist:10735773
Created April 15, 2014 14:09
curl facebook
curl https://facebook.com
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: http://curl.haxx.se/docs/sslcerts.html
@karlentwistle
karlentwistle / gist:10735797
Created April 15, 2014 14:09
openssl s_client -connect facebook
openssl s_client -connect graph.facebook.com:443 -showcerts
CONNECTED(00000003)
depth=1 /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
0 s:/C=US/ST=CA/L=Menlo Park/O=Facebook, Inc./CN=*.facebook.com
i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance CA-3
@karlentwistle
karlentwistle / gist:10735818
Created April 15, 2014 14:09
grab the certs
cd ~/
mkdir digi
wget https://www.digicert.com/CACerts/DigiCertHighAssuranceEVRootCA.crt
wget https://www.digicert.com/CACerts/DigiCertSecureServerCA.crt
wget https://www.digicert.com/CACerts/DigiCertHighAssuranceCA-3.crt
@karlentwistle
karlentwistle / gist:10735867
Created April 15, 2014 14:10
convert encoded .crt to plaintext .crt
openssl x509 -inform DES -in DigiCertHighAssuranceEVRootCA.crt -out DigiCertHighAssuranceEVRootCA.crt -text
openssl x509 -inform DES -in DigiCertSecureServerCA.crt -out DigiCertSecureServerCA.crt -text
openssl x509 -inform DES -in DigiCertHighAssuranceCA-3.crt -out DigiCertHighAssuranceCA-3.crt -text
@karlentwistle
karlentwistle / gist:10735884
Created April 15, 2014 14:10
move the certs
mkdir /usr/share/ca-certificates/digicert/
mv *.crt /usr/share/ca-certificates/digicert/
digicert/DigiCertHighAssuranceCA-3.crt
digicert/DigiCertSecureServerCA.crt
digicert/DigiCertHighAssuranceEVRootCA.crt
cd /etc/ssl
sudo c_rehash
blablabla
blablabla