Skip to content

Instantly share code, notes, and snippets.

@smartinm
Created October 22, 2015 14:28
Show Gist options
  • Save smartinm/12ba127c432bc8aa38d5 to your computer and use it in GitHub Desktop.
Save smartinm/12ba127c432bc8aa38d5 to your computer and use it in GitHub Desktop.
# Install new curl version from homebrew
$ brew install curl
# Convert cert to p12 format
$ openssl pkcs12 -export -out certificate.pfx -inkey private.key -in cert.crt -certfile ca_cert.pem
# Execute curl
$ /usr/local/opt/curl/bin/curl --cert certificate.pfx:PASSWORD -k https://url/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment