diff options
author | Rob Austein <sra@hactrn.net> | 2007-12-05 00:55:00 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-12-05 00:55:00 +0000 |
commit | cfe926c349a510f12a9f84a8aa62f3428636eb9f (patch) | |
tree | 156c9e15c025324aa94ea031f0851c4a4bd37061 | |
parent | 4dc7c50e8deb8432c31fca22497552ff6eee9db2 (diff) |
Checkpoint
svn path=/scripts/apnic-poke-2.sh; revision=1363
-rw-r--r-- | scripts/apnic-poke-2.sh | 4 | ||||
-rw-r--r-- | scripts/biz-certs/Bob-CA.srl | 2 | ||||
-rw-r--r-- | scripts/rpki/cms.py | 9 |
3 files changed, 12 insertions, 3 deletions
diff --git a/scripts/apnic-poke-2.sh b/scripts/apnic-poke-2.sh index f6d3fd47..32e81652 100644 --- a/scripts/apnic-poke-2.sh +++ b/scripts/apnic-poke-2.sh @@ -39,6 +39,10 @@ $openssl x509 -req -in bsc.req -out bsc.cer \ python irbe-cli.py bsc --action set --self_id 1 --bsc_id 1 --signing_cert bsc.cer rm -f bsc.req bsc.cer +# List what's in the BSC, for today's debugging fun + +python irbe-cli.py bsc --action list --self_id 1 --bsc_id 1 + # Create a repository context python irbe-cli.py repository --self_id 1 --action create --bsc_id 1 diff --git a/scripts/biz-certs/Bob-CA.srl b/scripts/biz-certs/Bob-CA.srl index 4062b11e..8517ccf2 100644 --- a/scripts/biz-certs/Bob-CA.srl +++ b/scripts/biz-certs/Bob-CA.srl @@ -1 +1 @@ -90801F1ED1945505 +90801F1ED1945507 diff --git a/scripts/rpki/cms.py b/scripts/rpki/cms.py index 2a9124c7..8e14047d 100644 --- a/scripts/rpki/cms.py +++ b/scripts/rpki/cms.py @@ -8,7 +8,7 @@ requires disk I/O, and likes PEM format. Fix this later. import os, rpki.x509, rpki.exceptions, lxml.etree -debug = True +debug = 2 # openssl smime -sign -nodetach -outform DER -signer biz-certs/Alice-EE.cer # -certfile biz-certs/Alice-CA.cer -inkey biz-certs/Alice-EE.key @@ -52,6 +52,11 @@ def sign(plaintext, keypair, certs): os.unlink(certfile_filename) os.unlink(plaintext_filename) + if debug >= 2: + print + print "CMS dump:" + dumpasn1(cms) + return cms # openssl smime -verify -inform DER -in THING.der -CAfile biz-certs/Alice-Root.cer @@ -82,7 +87,7 @@ def verify(cms, ta): if status == "Verification successful\n": return plaintext else: - if debug: + if debug >= 1: print "CMS verification failed, dumping inputs:" print print "TA:" |