Commit d36f9f08 authored by Łukasz Nowak's avatar Łukasz Nowak

- lowercase ids, as they are hex numbers


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42378 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 01bfb8cb
......@@ -177,7 +177,7 @@ class CertificateAuthorityTool(BaseTool):
self._checkCertificateAuthority()
self._lockCertificateAuthority()
try:
new_id = open(self.serial, 'r').read().strip()
new_id = open(self.serial, 'r').read().strip().lower()
cn = base64.encodestring(str(new_id) + ':')
key = os.path.join(self.certificate_authority_path, 'private', new_id+'.key')
csr = os.path.join(self.certificate_authority_path, new_id + '.csr')
......@@ -223,7 +223,7 @@ class CertificateAuthorityTool(BaseTool):
self._checkCertificateAuthority()
self._lockCertificateAuthority()
try:
new_id = open(self.crl, 'r').read().strip()
new_id = open(self.crl, 'r').read().strip().lower()
crl = os.path.join(self.certificate_authority_path, 'crl', new_id + '.crl')
cert = os.path.join(self.certificate_authority_path, 'certs', serial + '.crt')
if not os.path.exists(cert):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment