How to export a public key from a X509 Object
Asked by
Stephan Rügamer
HI guys,
I'm sitting over pyOpenSSL and I wonder how I can dump the public key (which I retrieved from a certificate) into a string / file.
The returned object type is PKey, and the only method I found is to dump a private key....
I wonder if I could use the very same dump_privatekey method to export the public key.
Any hints are welcome :)
Kind regards,
\sh
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- pyOpenSSL Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Stephan Rügamer for more information if necessary.
To post a message you must log in.