Skip to content

Add access methods to Certificate #118

Open
@vaffeine

Description

@vaffeine

Hi,

I need to access server's public key to use it in the NTLM implementation that I am working on.

To do so, I use Certificate::to_der() method and then parse the public key using X509 from OpenSSL. But this, obviously, is not really convenient, because the key is already parsed by native_tls and I need to parse it again with platform dependent code.

I think it would be great to have methods to access certificate fields in a platform-independent way. X509 from OpenSSL provides a lot of methods for it. It is also possible to retrieve some of them with SecCertificateExt on macOS and the PR, that allows to retrieve public certificate, is almost merged into schannel-rs .

I could work on it and create a PR if you don't mind.

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