diff options
author | Rob Austein <sra@hactrn.net> | 2008-04-24 05:44:46 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-04-24 05:44:46 +0000 |
commit | 89e42691ded5034ca046fe21fb5bf17cf1a29c35 (patch) | |
tree | 14a673fa518772522a85a07e4821e32bbd12ba62 /rpkid/test-pow-cms.py | |
parent | e353fe24d87452309e24968a462948b0863edb33 (diff) |
Checkpoint. Partly converted to new BPKI model. This breaks make
test, mostly because the cross-certification stuff isn't done yet.
svn path=/docs/left-right-xml; revision=1701
Diffstat (limited to 'rpkid/test-pow-cms.py')
-rw-r--r-- | rpkid/test-pow-cms.py | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/rpkid/test-pow-cms.py b/rpkid/test-pow-cms.py index f4196f73..e65cd189 100644 --- a/rpkid/test-pow-cms.py +++ b/rpkid/test-pow-cms.py @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -import POW, rpki.x509, os +import POW, rpki.x509, os, traceback key = rpki.x509.RSA(Auto_file = "biz-certs/Alice-EE.key").get_POW() ee = rpki.x509.X509(Auto_file = "biz-certs/Alice-EE.cer").get_POW() @@ -53,7 +53,21 @@ for args in ((ee, key, plaintext, [ca], (), oid), cms = POW.CMS() cms.sign(*args) - if True: + print "Certs:" + try: + for x in cms.certs(): + print x.pprint() + except: + pass + + print "CRLs:" + try: + for c in cms.crls(): + print c.pprint() + except: + pass + + if False: print cms.pprint() cms.verify(store, [ee]) |