Skip to content

Improve error handling when reading PKCS8 private key #35

@rhoerbe

Description

@rhoerbe

When reading a pkcs8 key this exception is thrown:

File "/usr/lib/python2.7/site-packages/pyXMLSecurity-0.16.dev0-py2.7.egg/xmlsec/rsa_x509_pem/init.py", line 39, in parse
raise Exception("PEM data type not supported.")

Expected message: "PKCS8 private key format not supported".

This happens when creating RSA key pairs with openssl req

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