Skip to content

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

@iamjarvo

Description

@iamjarvo

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions