neonmoe / minreq

Simple, minimal-dependency HTTP client.
https://crates.io/crates/minreq
ISC License
179 stars 42 forks source link

How to specify client cert for two-way SSL? #108

Open seawaffle opened 1 month ago

seawaffle commented 1 month ago

I've been using minreq with the https-native feature and it's working perfectly fine for one-way SSL if I specify the CA cert using the SSL_CERT_FILE variable. I'm unsure of how to specify the client key and cert for situations where I need two-way SSL. I didn't see any mention of this in the docs. It feels like this should be doable, I'm just unsure how. Thanks for any guidance you can give!

neonmoe commented 1 month ago

Minreq doesn't support this explicitly, and I don't think we expose enough of the underlying https libraries to be able to work around it.

This would be nice to have though, so maybe in the future, if someone contributes it or I get around to it.