Commit ee8a195b authored by Rafael Monnerat's avatar Rafael Monnerat

erp5_certificate_authority: Fix symbolic link of revogation file

See merge request !1789
parents bde5a88d 6d45bd94
Pipeline #28437 failed with stage
in 0 seconds
......@@ -256,7 +256,7 @@ class CertificateAuthorityTool(BaseTool):
popenCommunicate([self.openssl_binary, 'ca', '-utf8', '-config',
self.openssl_config, '-gencrl', '-out', crl])
alias = os.path.join(crl_path, popenCommunicate([self.openssl_binary,
'crl', '-noout', '-hash', '-in', crl]).strip() + '.')
'crl', '-noout', '-hash', '-in', crl]).strip() + '.r')
alias += str(len(glob.glob(alias + '*')))
created.append(alias)
os.symlink(os.path.basename(crl), alias)
......
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