Add Let's Encrypt Root Cert

This commit is contained in:
Bianca Fürstenau 2025-02-10 05:34:47 +01:00
parent d5e56af27b
commit 528507c9bb
4 changed files with 90 additions and 4 deletions

View file

@ -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())