diff options
author | Rob Austein <sra@hactrn.net> | 2007-09-19 20:54:27 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-09-19 20:54:27 +0000 |
commit | c6f1cfc68d8ce247b870a35e603b10b960092efe (patch) | |
tree | e94b8b5e6c988e718202c651a0e3eaa997ea14c7 /scripts/rpki/pkcs10.py | |
parent | f02848f2d0ebcfe6ddbb695e8bc0bd8697c2e6d1 (diff) |
generate_keypair now appears to work
svn path=/scripts/rpki/left_right.py; revision=996
Diffstat (limited to 'scripts/rpki/pkcs10.py')
-rw-r--r-- | scripts/rpki/pkcs10.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rpki/pkcs10.py b/scripts/rpki/pkcs10.py index 4d6a024a..357fde71 100644 --- a/scripts/rpki/pkcs10.py +++ b/scripts/rpki/pkcs10.py @@ -15,7 +15,7 @@ def make_request(keypair): digest = POW.Digest(POW.SHA1_DIGEST) digest.update(keypair.get_POW().derWrite(POW.RSA_PUBLIC_KEY)) - commonName = "0x" + binascii.hexify(digest.digest()) + commonName = "0x" + binascii.hexlify(digest.digest()) try: config_filename = "req.tmp.conf" @@ -26,7 +26,7 @@ def make_request(keypair): i,o = os.popen2(["openssl", "req", "-config", config_filename, "-new", "-key", "/dev/stdin", "-outform", "DER"]) i.write(keypair.get_PEM()) i.close() - pkcs10 = o.read() + pkcs10 = rpki.x509.PKCS10_Request(DER = o.read()) o.close() finally: |