Closed
Description
For even something as simple as:
extern crate hyper;
use hyper::Client;
fn main() {
let client = Client::new();
let mut res = client.get("https://www.google.com/").send().unwrap();
let mut body = String::new();
res.read_to_string(&mut body).unwrap();
println!("Test: {}", body);
}
I get this panic:
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value:
Ssl(
OpenSslErrors(
[
UnknownError {
library: "SSL routines",
function: "SSL3_GET_SERVER_CERTIFICATE",
reason: "certificate verify failed"
}
]
)
)', ../src/libcore\result.rs:785
So either I'm missing something crucial like how to add root certs to hyper or something, I'm not sure. I don't really have anything to go on.
I'm on Windows 10.0.10586, using Rust 1.10.0-nightly (8492b6aa4 2016-05-14), and the Win32OpenSSL/Win64OpenSSL v1.0.2h 64-bit OpenSSL implementation for rust-openssl.
I have a feeling this isn't really a "bug" with either hyper or rust-openssl, but rather I simply don't know how to properly initialize whatever it is I need to in order to use HTTPS.
Metadata
Metadata
Assignees
Labels
No labels