commands.add_domains_and_devices¶
Adds Issuing CAs, Domains and Devices with different onboarding protocols.
Classes¶
Add domains and associated device names with random onboarding protocol and serial number. |
Functions¶
|
Generates a secret with the number of symbols provided. |
Gets random allowed PkiProtocols. |
|
|
Gets random allowed PkiProtocols. |
Module Contents¶
- commands.add_domains_and_devices._get_secret(number_of_symbols=16)[source]¶
Generates a secret with the number of symbols provided.
- Parameters:
number_of_symbols (int) – Number of symbols of the generated secret. Defaults to 16.
- Returns:
The generated secret.
- Return type:
str
- commands.add_domains_and_devices.get_random_no_onboarding_pki_protocols()[source]¶
Gets random allowed PkiProtocols.
- Parameters:
include_protocol – This protocol will be included in the allowed list.
- Returns:
A list of PkiProtocols.
- Return type:
list[devices.models.NoOnboardingPkiProtocol]
- commands.add_domains_and_devices.get_random_onboarding_pki_protocols(include_protocol=None)[source]¶
Gets random allowed PkiProtocols.
- Parameters:
include_protocol (devices.models.OnboardingPkiProtocol | None) – This protocol will be included in the allowed list.
- Returns:
A list of PkiProtocols.
- Return type:
list[devices.models.OnboardingPkiProtocol]
- class commands.add_domains_and_devices.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]¶
Bases:
django.core.management.base.BaseCommandAdd domains and associated device names with random onboarding protocol and serial number.