[Erp5-report] r42378 luke - /erp5/trunk/products/Vifib/Tool/CertificateAuthorityTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jan 17 15:11:12 CET 2011


Author: luke
Date: Mon Jan 17 15:11:12 2011
New Revision: 42378

URL: http://svn.erp5.org?rev=42378&view=rev
Log:
 - lowercase ids, as they are hex numbers

Modified:
    erp5/trunk/products/Vifib/Tool/CertificateAuthorityTool.py

Modified: erp5/trunk/products/Vifib/Tool/CertificateAuthorityTool.py
URL: http://svn.erp5.org/erp5/trunk/products/Vifib/Tool/CertificateAuthorityTool.py?rev=42378&r1=42377&r2=42378&view=diff
==============================================================================
--- erp5/trunk/products/Vifib/Tool/CertificateAuthorityTool.py [utf8] (original)
+++ erp5/trunk/products/Vifib/Tool/CertificateAuthorityTool.py [utf8] Mon Jan 17 15:11:12 2011
@@ -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):



More information about the Erp5-report mailing list