Add Let's Encrypt Root Cert
This commit is contained in:
parent
d5e56af27b
commit
528507c9bb
4 changed files with 90 additions and 4 deletions
|
@ -66,6 +66,8 @@ async fn pull_data() -> Result<String, ()> {
|
|||
.map_err(|_| ())?;
|
||||
client.username(include_str!("cloud_user.txt"));
|
||||
client.http_auth(easy::Auth::new().auto(true));
|
||||
client.ssl_cainfo_blob(include_bytes!("isrg-root-x1.pem"))
|
||||
.map_err(|_| ())?;
|
||||
client.perform().map_err(|_| ())?;
|
||||
let content = client.get_ref();
|
||||
Ok(String::from_utf8_lossy(&content.0).to_string())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue