0

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.

Duke Dougal
  • 24,359
  • 31
  • 91
  • 123

1 Answers1

0

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"))