aboutsummaryrefslogtreecommitdiff
path: root/rpki/x509.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-11-12 03:49:09 +0000
committerRob Austein <sra@hactrn.net>2014-11-12 03:49:09 +0000
commit50f092a4485b071dedbef3cf1e52e7cb421b85c2 (patch)
tree1af79deb76b476cad21984e15902d129d1ba5152 /rpki/x509.py
parent1dc8deeb6a24994316940a51b8bbdd83ffcb473b (diff)
Fix first round of RRDP SIA URI bugs.
svn path=/branches/tk705/; revision=6019
Diffstat (limited to 'rpki/x509.py')
-rw-r--r--rpki/x509.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/rpki/x509.py b/rpki/x509.py
index 9bc34e19..1b1dafba 100644
--- a/rpki/x509.py
+++ b/rpki/x509.py
@@ -739,6 +739,10 @@ class X509(DER_object):
Common code to issue an RPKI certificate.
"""
+ if not sia or len(sia) != 4 or not sia[3]:
+ logger.debug("Oops! _issue() sia: %r", sia)
+ log.show_stack(logger)
+
now = rpki.sundial.now()
ski = subject_key.get_SKI()
@@ -784,6 +788,7 @@ class X509(DER_object):
assert sia is not None or not is_ca
if sia is not None:
+ logger.debug("_issue() sia: %r", sia)
caRepository, rpkiManifest, signedObject, rpkiNotify = sia
cert.setSIA(
(caRepository,) if isinstance(caRepository, str) else caRepository,