Skip to content

Signing leaf certificates with parsed intermediate #268

@pfzetto

Description

@pfzetto

Hello,
I'm currently building a small PoC using this Library and stumbled upon the following error:

I have generated three Certificates (Root, Intermediate,Leave) and key pairs.
The blockage reveals itself when I try to load the Intermediate Certificate.
From the public documentation I learned that I can load a certificate by deserializing the Certificate using CertificateParams::from_ca_cert_pem and signing it using CertificateParams::self_signed or CertificateParams::signed_by.
In my case self signing the certificate would break the chain and I don't have access to the root private key to sign the intermediary on every restart of the server.
In the Issues I've learned that there was a Certificate::from_pem that should satisfy my case but got it removed.

How can I load an existing CA Certificate without 'resigning' it?

Thanks
Paul

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