rust-security-framework icon indicating copy to clipboard operation
rust-security-framework copied to clipboard

Error: "peer cert is valid, or was ignored if verification disabled"

Open iamjarvo opened this issue 6 years ago • 1 comments

I get the following error when trying to talk to a SSO solution.

 Hyper(
        Error {
            kind: Io,
            cause: Custom {
                kind: Other,
                error: Error {
                    code: -9841,
                    message: "peer cert is valid, or was ignored if verification disabled"
                }
            }
        }
    )

The same code works on linux fine. When on linux, rusttls uses openssl.

There was some chat about the issue in irc https://mozilla.logbot.info/rust/20190213. We think its because of renegotiation.

Thanks for sharing this library!

iamjarvo avatar Feb 13 '19 18:02 iamjarvo

is this up? I have the same problem from the rust-native-tls lib

ragoso avatar May 12 '23 21:05 ragoso