Skip to content

Instantly share code, notes, and snippets.

/test.md Secret

Created March 22, 2016 21:43
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 anonymous/11201fa1fdbf007110d5 to your computer and use it in GitHub Desktop.
Save anonymous/11201fa1fdbf007110d5 to your computer and use it in GitHub Desktop.
Difference between curl and OpenSSL Context
curl --cert thing.pem --cacert ca.crt https://somehost.com:8443/ #works
ctx      		= OpenSSL::SSL::SSLContext.new
store 			=  OpenSSL::X509::Store.new
store.add_file 'thing.pem'
ctx.cert_store 	= store
ctx.ca_file 	= 'ca.crt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment