Revize a53e5aef
Přidáno uživatelem Jan Pašek před téměř 4 roky(ů)
src/services/certificate_service.py | ||
---|---|---|
419 | 419 |
|
420 | 420 |
return self.cryptography_service.extract_public_key_from_certificate(certificate.pem_data) |
421 | 421 |
|
422 |
def get_certificate_state(self, id: int) -> str: |
|
423 |
""" |
|
424 |
Check whether the certificate is expired, valid or revoked. |
|
425 |
- in case it's revoked and expired, revoked is returned |
|
426 |
:param id: identifier of the certificate |
|
427 |
:return: certificates state from {valid, revoked, expired} |
|
428 |
:raises CertificateNotFoundException: in case id of non-existing certificate is entered |
|
429 |
""" |
|
430 |
pass |
|
431 |
|
|
422 | 432 |
def __get_crl_endpoint(self, ca_identifier: int) -> str: |
423 | 433 |
""" |
424 | 434 |
Get URL address of CRL distribution endpoint based on |
Také k dispozici: Unified diff
Re #8707 - Implemented status in the controller, prepared method in CertificateService