aoki.management.commands.aoki_gen_test_certs¶
Generates a testing IDevID PKI and associated Owner Certificate PKI for AOKI testing.
Attributes¶
Classes¶
Command to check for certificates using insufficient RSA key lengths. |
|
Generates a testing IDevID PKI and associated Owner Certificate PKI for AOKI testing. |
Functions¶
|
Write the private key to a PEM file. |
|
Write the certificate to a PEM file. |
Module Contents¶
- class aoki.management.commands.aoki_gen_test_certs.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]¶
Bases:
django.core.management.base.BaseCommandCommand to check for certificates using insufficient RSA key lengths.
- aoki.management.commands.aoki_gen_test_certs.write_private_key(key, file)[source]¶
Write the private key to a PEM file.
- Parameters:
key (trustpoint_core.crypto_types.PrivateKey)
file (pathlib.Path)
- Return type:
None
- aoki.management.commands.aoki_gen_test_certs.write_cert_pem(cert, file)[source]¶
Write the certificate to a PEM file.
- Parameters:
cert (cryptography.x509.Certificate)
file (pathlib.Path)
- Return type:
None