diff options
| author | Steven Fackler <[email protected]> | 2016-12-20 14:30:56 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-12-20 14:30:56 -0800 |
| commit | 3cfcf13880247b6faf12cc02cd3f7184e5b84965 (patch) | |
| tree | 9d30ef929a4286884619f363581707ea3e124796 /README.md | |
| parent | Release v0.9.3 (diff) | |
| parent | Merge pull request #535 from Philipp91/patch-1 (diff) | |
| download | rust-openssl-3cfcf13880247b6faf12cc02cd3f7184e5b84965.tar.xz rust-openssl-3cfcf13880247b6faf12cc02cd3f7184e5b84965.zip | |
Merge branch 'master' of github.com:sfackler/rust-openssl
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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) @@ -102,6 +114,12 @@ The build script can be configured via environment variables: * `OPENSSL_DIR` - If specified, a directory that will be used to find OpenSSL installation. It's expected that under this directory the `include` folder has header files and a `lib` folder has the runtime libraries. +* `OPENSSL_LIB_DIR` - If specified, a directory that will be used to find + OpenSSL libraries. Overrides the `lib` folder implied by `OPENSSL_DIR` + (if specified). +* `OPENSSL_INCLUDE_DIR` - If specified, a directory that will be used to find + OpenSSL header files. Overrides the `include` folder implied by `OPENSSL_DIR` + (if specified). * `OPENSSL_STATIC` - If specified, OpenSSL libraries will be statically rather than dynamically linked. |