pki.tests.fixturesยถ
Fixtures for the PKI pytest suite.
Functionsยถ
|
Creates a self-signed CA certificate with minimal extensions and saves it to the database once per module. |
|
Create a self-signed certificate with multiple extensions. |
Module Contentsยถ
- pki.tests.fixtures.self_signed_cert_basic(rsa_private_key)[source]ยถ
Creates a self-signed CA certificate with minimal extensions and saves it to the database once per module.
We manually unblock the DB because this fixture has โmoduleโ scope.
- Parameters:
rsa_private_key (cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey)
- Return type:
tuple[pki.models.certificate.CertificateModel, cryptography.x509.Certificate]