Skip to content

rumqttc: Panic when using rustls if there is an unsupported certificate in the native cert store #992

@WolfspiritM

Description

@WolfspiritM

Hello,

Currently on my Windows machine rumqttc with default TlsConfiguration and rustls panics here:
https://github.com/bytebeamio/rumqtt/blob/005f73caf0c2a808210fd73f2db6e1bc38652c5c/rumqttc/src/lib.rs#L358C13-L358C48

with:
called Result::unwrap() on an Err value: InvalidCertificate(Other(OtherError(UnsupportedCriticalExtension)))

The certificate in question is a self signed local certificate for the Razer Chroma API.

I think instead of unwrap it's fine to just continue and ignoring that unsupported certificate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions