Skip to content

Instantly share code, notes, and snippets.

@matthiasbalke
Last active June 2, 2021 08:16
Show Gist options
  • Save matthiasbalke/98012e924f0ecaf059a0a04c70639928 to your computer and use it in GitHub Desktop.
Save matthiasbalke/98012e924f0ecaf059a0a04c70639928 to your computer and use it in GitHub Desktop.
Test connection using client certificate
# using p12 store
curl --cert-type p12 --cert client-cert.p12:<password> --cacert cacert-containing-intermediate-and-root.txt https://hostname:1234/secure
# using openssl files
curl --cert certificate.cer --key private.key --cacert cacert-containing-intermediate-and-root.txt https://hostname:1234/secure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment