Class CrlConfiguration
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<CrlConfiguration.Builder,
CrlConfiguration>
Contains configuration information for a certificate revocation list (CRL). Your private certificate authority (CA)
creates base CRLs. Delta CRLs are not supported. You can enable CRLs for your new or an existing private CA by
setting the Enabled parameter to true
. Your private CA writes CRLs to an S3 bucket that you
specify in the S3BucketName parameter. You can hide the name of your bucket by specifying a value for the
CustomCname parameter. Your private CA by default copies the CNAME or the S3 bucket name to the CRL
Distribution Points extension of each certificate it issues. If you want to configure this default behavior to be
something different, you can set the CrlDistributionPointExtensionConfiguration parameter. Your S3 bucket
policy must give write permission to Amazon Web Services Private CA.
Amazon Web Services Private CA assets that are stored in Amazon S3 can be protected with encryption. For more information, see Encrypting Your CRLs.
Your private CA uses the value in the ExpirationInDays parameter to calculate the nextUpdate field in the CRL. The CRL is refreshed prior to a certificate's expiration date or when a certificate is revoked. When a certificate is revoked, it appears in the CRL until the certificate expires, and then in one additional CRL after expiration, and it always appears in the audit report.
A CRL is typically updated approximately 30 minutes after a certificate is revoked. If for any reason a CRL update fails, Amazon Web Services Private CA makes further attempts every 15 minutes.
CRLs contain the following fields:
-
Version: The current version number defined in RFC 5280 is V2. The integer value is 0x1.
-
Signature Algorithm: The name of the algorithm used to sign the CRL.
-
Issuer: The X.500 distinguished name of your private CA that issued the CRL.
-
Last Update: The issue date and time of this CRL.
-
Next Update: The day and time by which the next CRL will be issued.
-
Revoked Certificates: List of revoked certificates. Each list item contains the following information.
-
Serial Number: The serial number, in hexadecimal format, of the revoked certificate.
-
Revocation Date: Date and time the certificate was revoked.
-
CRL Entry Extensions: Optional extensions for the CRL entry.
-
X509v3 CRL Reason Code: Reason the certificate was revoked.
-
-
-
CRL Extensions: Optional extensions for the CRL.
-
X509v3 Authority Key Identifier: Identifies the public key associated with the private key used to sign the certificate.
-
X509v3 CRL Number:: Decimal sequence number for the CRL.
-
-
Signature Algorithm: Algorithm used by your private CA to sign the CRL.
-
Signature Value: Signature computed over the CRL.
Certificate revocation lists created by Amazon Web Services Private CA are DER-encoded. You can use the following OpenSSL command to list a CRL.
openssl crl -inform DER -text -in crl_path -noout
For more information, see Planning a certificate revocation list (CRL) in the Amazon Web Services Private Certificate Authority User Guide
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CrlConfiguration.Builder
builder()
Configures the behavior of the CRL Distribution Point extension for certificates issued by your certificate authority.final String
Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point.final Boolean
enabled()
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Integer
Validity period of the CRL in days.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
Name of the S3 bucket that contains the CRL.final S3ObjectAcl
Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket.final String
Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket.static Class
<? extends CrlConfiguration.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
enabled
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. You can use this value to enable certificate revocation for a new CA when you call the CreateCertificateAuthority action or for an existing CA when you call the UpdateCertificateAuthority action.
- Returns:
- Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. You can use this value to enable certificate revocation for a new CA when you call the CreateCertificateAuthority action or for an existing CA when you call the UpdateCertificateAuthority action.
-
expirationInDays
Validity period of the CRL in days.
- Returns:
- Validity period of the CRL in days.
-
customCname
Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don't want the name of your S3 bucket to be public.
The content of a Canonical Name (CNAME) record must conform to RFC2396 restrictions on the use of special characters in URIs. Additionally, the value of the CNAME must not include a protocol prefix such as "http://" or "https://".
- Returns:
- Name inserted into the certificate CRL Distribution Points extension that enables the use of an
alias for the CRL distribution point. Use this value if you don't want the name of your S3 bucket to be
public.
The content of a Canonical Name (CNAME) record must conform to RFC2396 restrictions on the use of special characters in URIs. Additionally, the value of the CNAME must not include a protocol prefix such as "http://" or "https://".
-
s3BucketName
Name of the S3 bucket that contains the CRL. If you do not provide a value for the CustomCname argument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You can change the name of your bucket by calling the UpdateCertificateAuthority operation. You must specify a bucket policy that allows Amazon Web Services Private CA to write the CRL to your bucket.
The
S3BucketName
parameter must conform to the S3 bucket naming rules.- Returns:
- Name of the S3 bucket that contains the CRL. If you do not provide a value for the CustomCname
argument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the
issued certificate. You can change the name of your bucket by calling the UpdateCertificateAuthority operation. You must specify a bucket
policy that allows Amazon Web Services Private CA to write the CRL to your bucket.
The
S3BucketName
parameter must conform to the S3 bucket naming rules.
-
s3ObjectAcl
Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket. If you choose PUBLIC_READ, the CRL will be accessible over the public internet. If you choose BUCKET_OWNER_FULL_CONTROL, only the owner of the CRL S3 bucket can access the CRL, and your PKI clients may need an alternative method of access.
If no value is specified, the default is
PUBLIC_READ
.Note: This default can cause CA creation to fail in some circumstances. If you have have enabled the Block Public Access (BPA) feature in your S3 account, then you must specify the value of this parameter as
BUCKET_OWNER_FULL_CONTROL
, and not doing so results in an error. If you have disabled BPA in S3, then you can specify eitherBUCKET_OWNER_FULL_CONTROL
orPUBLIC_READ
as the value.For more information, see Blocking public access to the S3 bucket.
If the service returns an enum value that is not available in the current SDK version,
s3ObjectAcl
will returnS3ObjectAcl.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available froms3ObjectAclAsString()
.- Returns:
- Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket. If
you choose PUBLIC_READ, the CRL will be accessible over the public internet. If you choose
BUCKET_OWNER_FULL_CONTROL, only the owner of the CRL S3 bucket can access the CRL, and your PKI clients
may need an alternative method of access.
If no value is specified, the default is
PUBLIC_READ
.Note: This default can cause CA creation to fail in some circumstances. If you have have enabled the Block Public Access (BPA) feature in your S3 account, then you must specify the value of this parameter as
BUCKET_OWNER_FULL_CONTROL
, and not doing so results in an error. If you have disabled BPA in S3, then you can specify eitherBUCKET_OWNER_FULL_CONTROL
orPUBLIC_READ
as the value.For more information, see Blocking public access to the S3 bucket.
- See Also:
-
s3ObjectAclAsString
Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket. If you choose PUBLIC_READ, the CRL will be accessible over the public internet. If you choose BUCKET_OWNER_FULL_CONTROL, only the owner of the CRL S3 bucket can access the CRL, and your PKI clients may need an alternative method of access.
If no value is specified, the default is
PUBLIC_READ
.Note: This default can cause CA creation to fail in some circumstances. If you have have enabled the Block Public Access (BPA) feature in your S3 account, then you must specify the value of this parameter as
BUCKET_OWNER_FULL_CONTROL
, and not doing so results in an error. If you have disabled BPA in S3, then you can specify eitherBUCKET_OWNER_FULL_CONTROL
orPUBLIC_READ
as the value.For more information, see Blocking public access to the S3 bucket.
If the service returns an enum value that is not available in the current SDK version,
s3ObjectAcl
will returnS3ObjectAcl.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available froms3ObjectAclAsString()
.- Returns:
- Determines whether the CRL will be publicly readable or privately held in the CRL Amazon S3 bucket. If
you choose PUBLIC_READ, the CRL will be accessible over the public internet. If you choose
BUCKET_OWNER_FULL_CONTROL, only the owner of the CRL S3 bucket can access the CRL, and your PKI clients
may need an alternative method of access.
If no value is specified, the default is
PUBLIC_READ
.Note: This default can cause CA creation to fail in some circumstances. If you have have enabled the Block Public Access (BPA) feature in your S3 account, then you must specify the value of this parameter as
BUCKET_OWNER_FULL_CONTROL
, and not doing so results in an error. If you have disabled BPA in S3, then you can specify eitherBUCKET_OWNER_FULL_CONTROL
orPUBLIC_READ
as the value.For more information, see Blocking public access to the S3 bucket.
- See Also:
-
crlDistributionPointExtensionConfiguration
public final CrlDistributionPointExtensionConfiguration crlDistributionPointExtensionConfiguration()Configures the behavior of the CRL Distribution Point extension for certificates issued by your certificate authority. If this field is not provided, then the CRl Distribution Point Extension will be present and contain the default CRL URL.
- Returns:
- Configures the behavior of the CRL Distribution Point extension for certificates issued by your certificate authority. If this field is not provided, then the CRl Distribution Point Extension will be present and contain the default CRL URL.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<CrlConfiguration.Builder,
CrlConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-