diff options
author | Rob Austein <sra@hactrn.net> | 2015-11-12 08:32:01 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-11-12 08:32:01 +0000 |
commit | 61a3d8a132af9906e85214d1f29e8552dd1b9e8e (patch) | |
tree | a3e025f4f333ba105de8dd8f9c3c3c29f085f547 /rpki/x509.py | |
parent | dd55d982548d76837e4a68331b2da3d973606f59 (diff) |
Add .__repr__() methods to rpkidb models. Rewrite
.publish_world_now() to something a little less whacky. Consolidate
fix for singleton URIs in SIA fields.
svn path=/branches/tk705/; revision=6170
Diffstat (limited to 'rpki/x509.py')
-rw-r--r-- | rpki/x509.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rpki/x509.py b/rpki/x509.py index 5286fabd..8952de4f 100644 --- a/rpki/x509.py +++ b/rpki/x509.py @@ -776,9 +776,9 @@ 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) - rpki.log.show_stack(logger) + assert sia and len(sia) == 4 and sia[3] + + sia = tuple((str(s),) if isinstance(s, (str, unicode)) else s for s in sia) now = rpki.sundial.now() ski = subject_key.get_SKI() |