Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1529

How do I use self-signed cert installed on OS via Rust reqwest crate?

$
0
0

After some search, I found that reqwest::ClientBuilder.add_root_certificate() can be used to specify a certain self-signed certificate. To to this, a desired certificate is defined in compile time, or a user shall provide (a path of) the certificate and then the program shall read it.

However, what I want to do is that the program uses self-signed certificates installed on the OS (For example on Windows, double-clicking a self-signed certificate allows me to install it to the system) without a compile time hard-coded value or manual user input.

How do I achieve this?


Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>