Revize 4ff15a44
Přidáno uživatelem Jan Pašek před téměř 4 roky(ů)
src/services/certificate_service.py | ||
---|---|---|
428 | 428 |
:return: certificates state from {valid, revoked, expired} |
429 | 429 |
:raises CertificateNotFoundException: in case id of non-existing certificate is entered |
430 | 430 |
""" |
431 |
Logger.debug("Function launched.") |
|
431 | 432 |
status = CERTIFICATE_VALID |
432 | 433 |
|
433 | 434 |
# Read the selected certificate from the repository |
434 | 435 |
certificate = self.certificate_repository.read(id) |
435 | 436 |
if certificate is None: |
437 |
Logger.error("Certificate whose details were requested does not exists.") |
|
436 | 438 |
raise CertificateNotFoundException(id) |
437 | 439 |
|
438 | 440 |
# check the expiration date using OpenSSL |
Také k dispozici: Unified diff
Re #8707 - Added logging for the new functionality