Skip to content

Commit

Permalink
fix the impersistent root certificates when importca = false
Browse files Browse the repository at this point in the history
( close #204 )
  • Loading branch information
URenko authored Oct 19, 2024
1 parent bd88a93 commit 64f856d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions accesser/utils/importca.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
from .log import logger
logger = logger.getChild('importca')

certpath = os.path.join(basepath, 'CERT')
if setting.config['importca']:
certpath = os.path.join(basepath, 'CERT')
else:
certpath = 'CERT'

def logandrun(cmd):
if hasattr(subprocess, 'STARTUPINFO'):
Expand Down Expand Up @@ -107,4 +110,4 @@ def import_ca():
cm.create_root_ca()
logger.warning('other platform support is under development, please import root.crt manually.')
else:
cm.create_root_ca()
cm.create_root_ca()

0 comments on commit 64f856d

Please sign in to comment.