Skip to content

Support loading PEM files without rehash names #188

@arilou

Description

@arilou

Before I go on and send a PR about this, I wanted to make sure you guys agree with this change.

Basically today rustls-native-certs follows the same logic as OpenSSL in regards of loading certificates only if they have a value
rehash name.

As far as I understand from OpenSSL this is used mainly as a performance reasons for the case there are many certificates in
a given directory and it will help "identify" the correct one.

Looking at other implementations for loading certificates from the SSL_CERT_DIR you can see here in Go
https://go.dev/src/crypto/x509/root_unix.go
That they dont enforce the rehash names, and simply loads all the certificates in the directory.

I was wondering if you will be willing to have the same type logic as the Go variant which is more permissive.

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