Open DmitrySamoylov opened 4 years ago
Can we make this a runtime configurable option?
Along with credentials we can pass enum like
enum Cert {
Cert(String), // Provided by user (Safe)
AcceptInvalid, // Accept self-signed (Dangerous)
None // Accept CA signed or http-only requests
}
Some cameras use self-signed cert which cannot be validated by default. Need to either ignore validation or allow passing the cert for communications. Reqwest supports both ways https://docs.rs/reqwest/0.10.4/reqwest/struct.Certificate.html https://docs.rs/reqwest/0.10.4/reqwest/struct.ClientBuilder.html#method.danger_accept_invalid_certs