Skip to content

Commit

Permalink
Fix the configuration path for certs folder
Browse files Browse the repository at this point in the history
  • Loading branch information
fmarco76 committed Oct 4, 2023
1 parent f54a966 commit 46229ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/server/python/pki/server/cli/cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ def execute(self, argv):
if cert_data:
cert_data = pki.nssdb.convert_cert(cert_data, 'base64', 'pem')
else:
crt_path = os.path.join(instance.conf_dir, 'conf', 'certs', cert_id + '.crt')
crt_path = os.path.join(instance.conf_dir, 'certs', cert_id + '.crt')
try:
with open(crt_path, 'r', encoding='utf-8') as f:
cert_data = ''.join(f.readlines())
Expand All @@ -981,7 +981,7 @@ def execute(self, argv):
if cert_request:
csr_data = pki.nssdb.convert_csr(cert_request, 'base64', 'pem')
else:
csr_path = os.path.join(instance.conf_dir, 'conf', 'certs', cert_id + '.csr')
csr_path = os.path.join(instance.conf_dir, 'certs', cert_id + '.csr')
try:
with open(csr_path, 'r', encoding='utf-8') as f:
csr_data = ''.join(f.readlines())
Expand Down

0 comments on commit 46229ab

Please sign in to comment.