Skip to content

Commit

Permalink
[fix] msca_handler.py url parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
grindsa committed Nov 8, 2024
1 parent 268e285 commit 7828640
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/ca_handler/mscertsrv_ca_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def _enroll(self, csr: str) -> Tuple[str, str, str]:
""" enroll certificate """
self.logger.debug('CAhandler._enroll()')
# setup certserv
ca_server = Certsrv(self.host, self.user, self.password, self.auth_method, self.ca_bundle, verify=self.verify, proxies=self.proxy)
ca_server = Certsrv(self.host, self.url, self.user, self.password, self.auth_method, self.ca_bundle, verify=self.verify, proxies=self.proxy)

error = None
cert_bundle = None
Expand Down
5 changes: 3 additions & 2 deletions tools/entrust_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def arg_parse():
LOGGER = logger_setup(DEBUG)

with CAhandler(logger=LOGGER) as ca_handler:
if not ca_handler.credential_check():
result = ca_handler.credential_check()
if not result:

if CONFIG_DIC['revoke']:
print("Revoking certificate with transaction_id: ", CONFIG_DIC['revoke'])
Expand All @@ -60,5 +61,5 @@ def arg_parse():
if (CONFIG_DIC['filteractive'] and cert['status'] == 'ACTIVE') or not CONFIG_DIC['filteractive']:
print(cert)
else:
print("Credential check failed")
print("Credential check failed: ", result)
sys.exit(1)

0 comments on commit 7828640

Please sign in to comment.