Skip to content

Use a more specific pem.RSAPrivateKey for the private key object #162

@adiroiban

Description

@adiroiban

The code uses the very generic pem.Key which can also be a pubic key.

We should use a more specific value like pem.RSAPrivateKey or a bit more generic pem.PrivateKey

Right now, txacme, only supports RSA keys.

But mabye in the future we will add more key types.


Targeted code

pem.Key(key.private_bytes(

Maybe, instead of direct instantiation of pem.RSAPrivateKey we can use pem.parse()

pem.parse() is already used for loading the certificates

So it makes sense to use the same mechanism to load the private key.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions