Skip to content

Support bare public keys? #1705

@reaperhulk

Description

@reaperhulk

Right now the OpenSSL backend can import PKCS8 public keys (and probably SubjectPublicKeyInfo wrapped keys, although we should verify that) but fails on "bare" RSA public keys (e.g. items written with PEM_write_BIO_RSAPublicKey). This is apparently a thing some people expect to be able to read (see: http://stackoverflow.com/questions/10569189/how-to-read-a-rsa-public-key-in-pem-pkcs1-format). Should we support it? And, relatedly, should we support writing this format with as_bytes?

I haven't researched EC or DSA so they may be subject to similar weirdness.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions