In curl I can connect with a private key, client cert, and a ca cert like this
curl --cert cert.pem --key key.pem --cacert ca.pem https://example.org
I can see the --cert and --cert-key options in HTTPie, but how could I use the --cacert option in HTTPie?
I tried combining cert.pem and ca.pem in a new file and using that as my --cert file, but that didn't work.
Only ca.pem
is required. This is correct request:
http --verify /etc/nginx/ssl/myCA.pem https://local.dev
Both ssl_certificate
- cert.pem
(crt) and ssl_certificate_key
- key.pem
(key) should be indicated in server settings, sho you do not need attach them in query.
I got it. In HTTPie you just pass the ca.pem using --verify like this
http --cert cert.pem --cert-key key.pem --verify ca.pem http://example.org
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With