Skip to content

tls: failed to verify certificate: x509: cannot validate certificate for <redacted> because it doesn't contain any IP SANs #105

@shamefulCake1

Description

@shamefulCake1

When running a client, I am receiving an error:

error:     dial server <redacted>:19190: CRYPTO_ERROR 0x12a (local): tls: failed to verify certificate: x509: cannot validate certificate for <redacted> because it doesn't contain any IP SANs

But in fact, since both clients and the server have a pre-shared cert, (server-cas-file=ca.pem), there is no reason to do IP validation. Moreover, doing IP validation only creates an inconvenience, because my server is running on a dynamic (but real, public) IP which changes every 24 hours, so I would have to re-generate it often.

Please, consider adding an option to trust any valid certificate chain, regardless of the IP/domain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions