pki.forms.certificates ====================== .. py:module:: pki.forms.certificates .. autoapi-nested-parse:: Django forms for certificate download and management. Module Contents --------------- .. py:class:: CertificateDownloadForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None, bound_field_class=None) Bases: :py:obj:`django.forms.Form` Form for downloading certificates in various formats. This form allows users to customize the download options for certificates, including the container type, inclusion of certificate chains, and the file format. It provides flexibility to download certificates in the desired structure and format for different use cases. .. attribute:: cert_file_container Specifies the container type for the downloaded certificates. - `single_file`: All certificates in a single file. - `zip`: Certificates as separate files in a `.zip` archive. - `tar_gz`: Certificates as separate files in a `.tar.gz` archive. :type: ChoiceField .. attribute:: cert_chain_incl Specifies whether to include certificate chains. - `cert_only`: Only the selected certificates. - `chain_incl`: Include certificate chains. :type: ChoiceField .. attribute:: cert_file_format Specifies the file format for the certificates. - `pem`: PEM format (.pem, .crt, .ca-bundle). - `der`: DER format (.der, .cer). - `pkcs7_pem`: PKCS#7 format in PEM encoding (.p7b, .p7c, .keystore). - `pkcs7_der`: PKCS#7 format in DER encoding (.p7b, .p7c, .keystore). :type: ChoiceField .. py:attribute:: cert_file_container .. py:attribute:: cert_chain_incl .. py:attribute:: cert_file_format