Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Extensions = Extensions' {}
- newExtensions :: Extensions
- extensions_certificatePolicies :: Lens' Extensions (Maybe (NonEmpty PolicyInformation))
- extensions_customExtensions :: Lens' Extensions (Maybe (NonEmpty CustomExtension))
- extensions_extendedKeyUsage :: Lens' Extensions (Maybe (NonEmpty ExtendedKeyUsage))
- extensions_keyUsage :: Lens' Extensions (Maybe KeyUsage)
- extensions_subjectAlternativeNames :: Lens' Extensions (Maybe (NonEmpty GeneralName))
Documentation
data Extensions Source #
Contains X.509 extension information for a certificate.
See: newExtensions
smart constructor.
Extensions' | |
|
Instances
newExtensions :: Extensions Source #
Create a value of Extensions
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:certificatePolicies:Extensions'
, extensions_certificatePolicies
- Contains a sequence of one or more policy information terms, each of
which consists of an object identifier (OID) and optional qualifiers.
For more information, see NIST's definition of
Object Identifier (OID).
In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.
$sel:customExtensions:Extensions'
, extensions_customExtensions
- Contains a sequence of one or more X.509 extensions, each of which
consists of an object identifier (OID), a base64-encoded value, and the
critical flag. For more information, see the
Global OID reference database.
$sel:extendedKeyUsage:Extensions'
, extensions_extendedKeyUsage
- Specifies additional purposes for which the certified public key may be
used other than basic purposes indicated in the KeyUsage
extension.
$sel:keyUsage:Extensions'
, extensions_keyUsage
- Undocumented member.
$sel:subjectAlternativeNames:Extensions'
, extensions_subjectAlternativeNames
- The subject alternative name extension allows identities to be bound to
the subject of the certificate. These identities may be included in
addition to or in place of the identity in the subject field of the
certificate.
extensions_certificatePolicies :: Lens' Extensions (Maybe (NonEmpty PolicyInformation)) Source #
Contains a sequence of one or more policy information terms, each of which consists of an object identifier (OID) and optional qualifiers. For more information, see NIST's definition of Object Identifier (OID).
In an end-entity certificate, these terms indicate the policy under which the certificate was issued and the purposes for which it may be used. In a CA certificate, these terms limit the set of policies for certification paths that include this certificate.
extensions_customExtensions :: Lens' Extensions (Maybe (NonEmpty CustomExtension)) Source #
Contains a sequence of one or more X.509 extensions, each of which consists of an object identifier (OID), a base64-encoded value, and the critical flag. For more information, see the Global OID reference database.
extensions_extendedKeyUsage :: Lens' Extensions (Maybe (NonEmpty ExtendedKeyUsage)) Source #
Specifies additional purposes for which the certified public key may be
used other than basic purposes indicated in the KeyUsage
extension.
extensions_keyUsage :: Lens' Extensions (Maybe KeyUsage) Source #
Undocumented member.
extensions_subjectAlternativeNames :: Lens' Extensions (Maybe (NonEmpty GeneralName)) Source #
The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate.