diff options
author | Rob Austein <sra@hactrn.net> | 2011-12-13 00:17:41 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2011-12-13 00:17:41 +0000 |
commit | 266a24c2d42c6e064561e39aef3bd40a674e61cc (patch) | |
tree | 735083028b807d25fa2225a409e1bb0b6251da6a /rpkid/rpki/x509.py | |
parent | 63676e02d7e58487cb0794659de6602168e36e90 (diff) |
Flesh out BPKI methods
svn path=/branches/tk100/; revision=4118
Diffstat (limited to 'rpkid/rpki/x509.py')
-rw-r--r-- | rpkid/rpki/x509.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rpkid/rpki/x509.py b/rpkid/rpki/x509.py index 2011b416..2d5505d5 100644 --- a/rpkid/rpki/x509.py +++ b/rpkid/rpki/x509.py @@ -761,6 +761,12 @@ class PKCS10(DER_object): self.POWpkix = req return self.POWpkix + def getSubject(self): + """ + Extract the subject name from this certification request. + """ + return X501DN(self.get_POWpkix().certificationRequestInfo.subject.get()) + def getPublicKey(self): """ Extract the public key from this certification request. |