I'm using pycypto but I don't mind using any library.
http://www.ietf.org/rfc/rfc4716.txt
I'd like to export a public key with a subject or comment header as defined in rfc4716 but I can't seem to see any functionality to do so.
I'm using pycypto but I don't mind using any library.
http://www.ietf.org/rfc/rfc4716.txt
I'd like to export a public key with a subject or comment header as defined in rfc4716 but I can't seem to see any functionality to do so.
Actually this code snippet simply works for me
import os
from Crypto.PublicKey import RSA
public_key = RSA.importKey(os.path.expanduser("~/.ssh/id_rsa.pub"))