How to convert M2Crypto.RSA.RSA to string
Marco Bizzarri
marco.bizzarri at gmail.com
Mon Sep 15 09:06:38 EDT 2008
On Mon, Sep 15, 2008 at 8:23 AM, Usman Ajmal <uzmanajmal at gmail.com> wrote:
> Hi,
>
> I have a M2Crypto.RSA.RSA instance that contain my public-key. I want that
> key as string. Is there any way to convert the said instance into string?
In case you want to write the pub-key to a file, you can use save_pub_key
def save_pub_key(self, file):
"""
Save the public key to a file in PEM format.
@type file: string
@param file: Name of file to save key to.
"""
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
More information about the Python-list
mailing list