aboutsummaryrefslogtreecommitdiff
path: root/rpkid/testbed.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-04-22 21:29:39 +0000
committerRob Austein <sra@hactrn.net>2008-04-22 21:29:39 +0000
commitb595e006ed516fc42a245864db564ba73e93b0c4 (patch)
treee5847cbb999d84fa0898bbfbbb6c7cccf5b7e940 /rpkid/testbed.py
parent759fffab10615ea55f354354aba4e1666f532409 (diff)
Add SKI and AKI when issuing BSC EE cert
svn path=/rpkid/testbed.py; revision=1695
Diffstat (limited to 'rpkid/testbed.py')
-rw-r--r--rpkid/testbed.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpkid/testbed.py b/rpkid/testbed.py
index 75abcc69..8d3e86c0 100644
--- a/rpkid/testbed.py
+++ b/rpkid/testbed.py
@@ -610,7 +610,8 @@ class allocation(object):
self.bsc_id = pdu.bsc_id
rpki.log.info("Issuing BSC EE cert for %s" % self.name)
- cmd = (prog_openssl, "x509", "-req", "-CA", self.name + "-RPKI-CA.cer", "-CAkey", self.name + "-RPKI-CA.key", "-CAserial", self.name + "-RPKI-CA.srl")
+ cmd = (prog_openssl, "x509", "-req", "-CA", self.name + "-RPKI-CA.cer", "-CAkey", self.name + "-RPKI-CA.key", "-CAserial", self.name + "-RPKI-CA.srl",
+ "-extfile", self.name + "-RPKI-EE.cnf", "-extensions", "req_x509_ext")
signer = subprocess.Popen(cmd, stdin = subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE)
bsc_ee = rpki.x509.X509(PEM = signer.communicate(input = pdu.pkcs10_request.get_PEM())[0])