Class RevokeCertificateRequest

    • Method Detail

      • certificateAuthorityArn

        public final String certificateAuthorityArn()

        Amazon Resource Name (ARN) of the private CA that issued the certificate to be revoked. This must be of the form:

        arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012

        Returns:
        Amazon Resource Name (ARN) of the private CA that issued the certificate to be revoked. This must be of the form:

        arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012

      • certificateSerial

        public final String certificateSerial()

        Serial number of the certificate to be revoked. This must be in hexadecimal format. You can retrieve the serial number by calling GetCertificate with the Amazon Resource Name (ARN) of the certificate you want and the ARN of your private CA. The GetCertificate action retrieves the certificate in the PEM format. You can use the following OpenSSL command to list the certificate in text format and copy the hexadecimal serial number.

        openssl x509 -in file_path -text -noout

        You can also copy the serial number from the console or use the DescribeCertificate action in the Certificate Manager API Reference.

        Returns:
        Serial number of the certificate to be revoked. This must be in hexadecimal format. You can retrieve the serial number by calling GetCertificate with the Amazon Resource Name (ARN) of the certificate you want and the ARN of your private CA. The GetCertificate action retrieves the certificate in the PEM format. You can use the following OpenSSL command to list the certificate in text format and copy the hexadecimal serial number.

        openssl x509 -in file_path -text -noout

        You can also copy the serial number from the console or use the DescribeCertificate action in the Certificate Manager API Reference.

      • revocationReasonAsString

        public final String revocationReasonAsString()

        Specifies why you revoked the certificate.

        If the service returns an enum value that is not available in the current SDK version, revocationReason will return RevocationReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from revocationReasonAsString().

        Returns:
        Specifies why you revoked the certificate.
        See Also:
        RevocationReason
      • toString

        public final String 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.
        Overrides:
        toString in class Object