Explain how to install trusted root certificates

The slproweb.com OpenSSL distribution does not contain root certificates, so they need to be downloaded and installed manually to avoid certificate warnings when making requests.
This commit is contained in:
Philipp Keck 2016-12-14 17:55:07 +01:00 committed by GitHub
parent b310e594cd
commit 65d45bcad8
1 changed files with 12 additions and 0 deletions

View File

@ -73,6 +73,18 @@ installation via an environment variable:
set OPENSSL_DIR=C:\OpenSSL-Win64 set OPENSSL_DIR=C:\OpenSSL-Win64
``` ```
Note that this OpenSSL distribution does not ship with any root certificates.
So to make requests to servers on the internet, you have to install them
manually. Download the [cacert.pem file from here], copy it somewhere safe
(`C:\OpenSSL-Win64\certs` is a good place) and point the `SSL_CERT_FILE`
environment variable there:
```
set SSL_CERT_FILE=C:\OpenSSL-Win64\certs\cacert.pem
```
[cacert.pem file from here]: https://curl.haxx.se/docs/caextract.html
After that, you're just a `cargo build` away! After that, you're just a `cargo build` away!
### Windows GNU (MinGW) ### Windows GNU (MinGW)