Skip to content

Commit

Permalink
Fix serial handling in PKIServer.renew_certificate()
Browse files Browse the repository at this point in the history
Resolves: #4873
  • Loading branch information
edewata committed Jan 28, 2025
1 parent 25cb21a commit ca443ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions base/server/python/pki/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ def renew_certificate(connection, output, serial):
:rtype: None
"""

logger.info('Renewing cert %s', hex(serial))
logger.info('Renewing cert %s', hex(int(serial)))

# Instantiate the CertClient
cert_client = pki.cert.CertClient(connection)
Expand All @@ -1804,8 +1804,7 @@ def renew_certificate(connection, output, serial):
logger.debug('- cert data: %s', cert_data)

if not cert_data:
raise PKIServerException('Unable to renew system '
'certificate for serial: %s' % serial)
raise PKIServerException('Unable to renew certificate %s' % hex(int(serial)))

# store cert_id for usage later
cert_serial_number = cert_data.serial_number
Expand Down

0 comments on commit ca443ec

Please sign in to comment.