Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate validation #40

Open
DmitrySamoylov opened this issue Apr 30, 2020 · 2 comments
Open

Certificate validation #40

DmitrySamoylov opened this issue Apr 30, 2020 · 2 comments
Assignees

Comments

@DmitrySamoylov
Copy link
Contributor

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

@chrisabruce
Copy link
Contributor

Can we make this a runtime configurable option?

@DmitrySamoylov
Copy link
Contributor Author

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
}

@DmitrySamoylov DmitrySamoylov self-assigned this May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants