aboutsummaryrefslogtreecommitdiff
path: root/scripts/rpki/x509.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rpki/x509.py')
-rw-r--r--scripts/rpki/x509.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rpki/x509.py b/scripts/rpki/x509.py
index 478fc6c5..93adf196 100644
--- a/scripts/rpki/x509.py
+++ b/scripts/rpki/x509.py
@@ -155,7 +155,7 @@ class DER_object(object):
"""Calculate g(SKI) for this object. Only work for subclasses
that implement get_SKI().
"""
- return base64.b64encode(self.get_SKI()).replace("+", "-").replace("/", "_")
+ return base64.urlsafe_b64encode(self.get_SKI()).rstrip("=")
def get_AKI(self):
"""Get the AKI extension from this object. Only works for subclasses that support getExtension()."""
@@ -673,7 +673,7 @@ class CRL(DER_object):
def generate(cls, keypair, issuer, serial, thisUpdate, nextUpdate, revokedCertificates, version = 1, digestType = "sha256WithRSAEncryption"):
crl = POW.pkix.CertificateList()
crl.setVersion(version)
- crl.setIssuer(issuer.get_POWpkix().getIssuer())
+ crl.setIssuer(issuer.get_POWpkix().getSubject())
crl.setThisUpdate(thisUpdate.toASN1tuple())
crl.setNextUpdate(nextUpdate.toASN1tuple())
if revokedCertificates: