Commit ec298331 authored by Julien Muchembled's avatar Julien Muchembled

CertificateAuthorityTool: symlink must be relative when target is in same directory

parent feaf1ebe
...@@ -252,7 +252,7 @@ class CertificateAuthorityTool(BaseTool): ...@@ -252,7 +252,7 @@ class CertificateAuthorityTool(BaseTool):
'crl', '-noout', '-hash', '-in', crl]).strip() + '.') 'crl', '-noout', '-hash', '-in', crl]).strip() + '.')
alias += str(len(glob.glob(alias + '*'))) alias += str(len(glob.glob(alias + '*')))
created.append(alias) created.append(alias)
os.symlink(crl, alias) os.symlink(os.path.basename(crl), alias)
return dict(crl=open(crl).read()) return dict(crl=open(crl).read())
except: except:
e = sys.exc_info() e = sys.exc_info()
......
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