How to handle requests for self-signed HTTPS certificates
I've got a few sites using HTTPS with self‑signed certificates, and it's spitting out this error:
Stack: Error: Hyper client: hyper_util::client::legacy::Error(Connect, Io(Custom { kind: InvalidData, error: InvalidCertificate(UnknownIssuer) })) (client error (IO: Custom { kind: InvalidData, error: InvalidCertificate(UnknownIssuer) } (invalid peer certificate: UnknownIssuer)))
I saw in the source code:
disable_certificate_validation
pem_files
But I have no idea how to use it.
In the end, I just want to make sure I can properly access sites that use self‑signed HTTPS certificates
0 条评论