help_pages.baseΒΆ
This module contains classes and functions used by all help pages.
ClassesΒΆ
Abstract base class for help page strategies. |
|
Holds shared context data. |
FunctionsΒΆ
|
Builds the key-generation section. |
|
Builds the profile select section. |
Builds the TLS trust-store section. |
|
Builds the CMP-signer trust-store section. |
|
|
Builds the Issuing CA Certificate section. |
Builds the extract files form P12 section. |
Module ContentsΒΆ
- class help_pages.base.HelpPageStrategy[source]ΒΆ
Bases:
abc.ABCAbstract base class for help page strategies.
- abstractmethod build_sections(help_context)[source]ΒΆ
Builds the required sections.
- Parameters:
help_context (HelpContext)
- Return type:
tuple[list[help_pages.help_section.HelpSection], str]
- class help_pages.base.HelpContext[source]ΒΆ
Holds shared context data.
- allowed_app_profiles: list[pki.models.domain.DomainAllowedCertificateProfileModel][source]ΒΆ
- device: None | devices.models.DeviceModel = None[source]ΒΆ
- devid_registration: None | pki.models.DevIdRegistration = None[source]ΒΆ
- get_device_or_http_404()[source]ΒΆ
Gets the device or throws an HTTP404 error.
- Raises:
Http404 β If the device does not exist.
- Returns:
The DeviceModel.
- Return type:
- help_pages.base.build_keygen_section(help_context, file_name)[source]ΒΆ
Builds the key-generation section.
- Parameters:
help_context (HelpContext) β The help context which will
file_name (str) β The file_name to use if the default shall not be used. Defaults to None.
- Returns:
The key-generation section.
- Return type:
- help_pages.base.build_profile_select_section(app_cert_profiles)[source]ΒΆ
Builds the profile select section.
- Returns:
The profile select section.
- Parameters:
app_cert_profiles (list[pki.models.domain.DomainAllowedCertificateProfileModel])
- Return type:
- help_pages.base.build_tls_trust_store_section()[source]ΒΆ
Builds the TLS trust-store section.
- Raises:
Http404 β If no active Trustpoint TLS-server credential is found or the root CA cert is missing.
- Returns:
The TLS trust-store section.
- Return type:
- help_pages.base.build_cmp_signer_trust_store_section(domain)[source]ΒΆ
Builds the CMP-signer trust-store section.
- Returns:
The CMP-signer trust-store section.
- Parameters:
domain (pki.models.domain.DomainModel)
- Return type:
- help_pages.base.build_issuing_ca_cert_section(domain)[source]ΒΆ
Builds the Issuing CA Certificate section.
- Returns:
The Issuing CA Certificate section.
- Parameters:
domain (pki.models.domain.DomainModel)
- Return type: