We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 936b264 commit 5b87d1bCopy full SHA for 5b87d1b
1 file changed
vcert/connection_cloud.py
@@ -481,12 +481,16 @@ def revoke_cert(self, request):
481
def retire_cert(self, request):
482
cert_id = None
483
if not request.id and not request.thumbprint:
484
- log.error("prev_cert_id or thumbprint or manage_id must be specified for renewing certificate")
+ log.error("id or thumbprint must be specified for retiring certificate")
485
raise ClientBadData
486
487
if request.thumbprint:
488
response = self.search_by_thumbprint(request.thumbprint)
489
- cert_id = response.id
+ cert_ids = response.certificateIds
490
+ if len(cert_ids) > 1:
491
+ log.error(f"multiple certificates matching thumbprint found")
492
+ raise VenafiError
493
+ cert_id = cert_ids[0]
494
495
if request.id:
496
cert_id = request.id
0 commit comments