aoki.management.commands.aoki_setup_est_test_env

Sets up a Trustpoint test environment for AOKI DevOwnerID EST enrollment testing.

This command re-uses the certificates generated by aoki_gen_test_certs and creates: - A local issuing CA called DevOwnerIDCA (root + intermediate, RSA-2048). - A domain DevOwnerIDDomain associated with that CA. - A device DevOwnerIDDevice in that domain, configured for EST username/password

no-onboarding with password devownerid123.

  • A TLS truststore DevOwnerIDTLSTruststore containing the Trustpoint HTTPS server cert.

  • An OwnerCredentialModel (DevOwnerIDOwnerCred) configured for remote EST enrollment via localhost:443, path /.well-known/est/DevOwnerIDDomain/dev_owner_id/simpleenroll, key type RSA-2048, linked to the TLS truststore above.

Module Contents

aoki.management.commands.aoki_setup_est_test_env.CA_UNIQUE_NAME = 'DevOwnerIDCA'[source]
aoki.management.commands.aoki_setup_est_test_env.DOMAIN_UNIQUE_NAME = 'DevOwnerIDDomain'[source]
aoki.management.commands.aoki_setup_est_test_env.DEVICE_COMMON_NAME = 'DevOwnerIDDevice'[source]
aoki.management.commands.aoki_setup_est_test_env.DEVICE_SERIAL_NUMBER = 'DEVOWNERID-EST-001'[source]
aoki.management.commands.aoki_setup_est_test_env.EST_PASSWORD = 'devownerid123'[source]
aoki.management.commands.aoki_setup_est_test_env.OWNER_CRED_UNIQUE_NAME = 'DevOwnerIDOwnerCred'[source]
aoki.management.commands.aoki_setup_est_test_env.TRUSTSTORE_UNIQUE_NAME = 'DevOwnerIDTLSTruststore'[source]
aoki.management.commands.aoki_setup_est_test_env.HTTPS_SERVER_CERT_PATH[source]
aoki.management.commands.aoki_setup_est_test_env.REMOTE_HOST = 'localhost'[source]
aoki.management.commands.aoki_setup_est_test_env.REMOTE_PORT = 443[source]
aoki.management.commands.aoki_setup_est_test_env.REMOTE_PATH = '/.well-known/est/DevOwnerIDDomain/dev_owner_id/simpleenroll'[source]
aoki.management.commands.aoki_setup_est_test_env.KEY_TYPE = 'RSA-2048'[source]
class aoki.management.commands.aoki_setup_est_test_env.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: pki.management.commands.base_commands.CertificateCreationCommandMixin, trustpoint.logger.LoggerMixin, django.core.management.base.BaseCommand

Creates a Trustpoint test environment for AOKI DevOwnerID EST enrollment testing.

help = 'Creates a local issuing CA ("DevOwnerIDCA"), domain ("DevOwnerIDDomain"), and device...[source]
log_and_stdout(message, level='info')[source]

Log a message and print it to stdout.

Parameters:
  • message (str) – The message to log and print.

  • level (str) – The log level ('info', 'warning', or 'error').

Return type:

None

handle(*args, **kwargs)[source]

Execute the command.

Parameters:
  • args (Any) – Additional positional arguments (unused).

  • kwargs (Any) – Additional keyword arguments (unused).

Return type:

None