aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-12-14 09:05:04 -0800
committerGitHub <[email protected]>2016-12-14 09:05:04 -0800
commitfde5b42d3e5640933ab73aa321cf31fd37817980 (patch)
tree82cd95ae811a51531873409344be5978cf77b7b3
parentMerge pull request #531 from aidanhs/aphs-lib-include-dirs (diff)
parentExplain how to install trusted root certificates (diff)
downloadrust-openssl-fde5b42d3e5640933ab73aa321cf31fd37817980.tar.xz
rust-openssl-fde5b42d3e5640933ab73aa321cf31fd37817980.zip
Merge pull request #535 from Philipp91/patch-1
#534 Explain how to install trusted root certificates
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9c3e30a2..0f1eb435 100644
--- a/README.md
+++ b/README.md
@@ -73,6 +73,18 @@ installation via an environment variable:
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!
### Windows GNU (MinGW)