Delete your private CA
You can delete a private CA from the AWS Management Console or AWS CLI permanently. You might want to delete one, for example, to replace it with a new CA that has a new private key. In order to delete a CA safely, follow these steps:
-
Create the replacement CA.
-
Once the new private CA is in production, disable the old one but do not immediately delete it.
-
Keep the old CA disabled until all of the certificates issued by it have expired.
-
Delete the old CA.
AWS Private CA does not check that all of the issued certificates have expired before it processes a delete request. You can generate an audit report to determine which certificates have expired. While the CA is disabled, you can revoke certificates, but you cannot issue new ones.
If you must delete a private CA before all the certificates it has issued have expired, we recommend that you also revoke the CA certificate. The CA certificate will be listed in the CRL of the parent CA, and the private CA will be untrusted by clients.
Important
A private CA can be deleted if it is in the PENDING_CERTIFICATE
,
CREATING
, EXPIRED
, DISABLED
, or
FAILED
state. In order to delete a CA in the ACTIVE
state, you must first disable it, or else the delete request results in an
exception. If you are deleting a private CA in the PENDING_CERTIFICATE
or DISABLED
state, you can set the length of its restoration period
from 7-30 days, with 30 being the default. During this period, status is set to
DELETED
and the CA is restorable. A private CA that is deleted
while in the CREATING
or FAILED
state has no assigned
restoration period and cannot be restored. For more information, see Restore a private CA.
You are not charged for a private CA after it has been deleted. However, if a deleted CA is restored, you are charged for the time between deletion and restoration. For more information, see Pricing for AWS Private Certificate Authority.
To delete a private CA (console)
-
Sign in to your AWS account and open the AWS Private CA console at https://console.aws.amazon.com/acm-pca/home
. -
On the Private certificate authorities page, choose your private CA from the list.
-
If your CA is in the
ACTIVE
state, you must first disable it. On the Actions menu, choose Disable. When prompted, choose I understand the risk, continue. -
For a CA that is not in the
ACTIVE
state, choose Actions, Delete. -
If your CA is in the
DISABLED
,EXPIRED
, orPENDING_CERTIFICATE
state, the Delete CA page lets you specify a restoration period of 7-30 days. If your private CA is not in one of these states, it cannot be restored later and deletion is permanent. -
Choose Delete.
-
If you are certain that you want to delete the private CA, choose Permanently delete when prompted. The status of the private CA changes to
DELETED
. However, you can restore the private CA before the end of the restoration period. To check the restoration period of a private CA in theDELETED
state, call the DescribeCerticateAuthority or ListCertificateAuthorities API operation.
To delete a private CA (AWS CLI)
Use the delete-certificate-authority command to delete a private CA.
$
aws acm-pca delete-certificate-authority \ --certificate-authority-arn arn:aws:acm-pca:
region
:account
:certificate-authority/CA_ID
\ --permanent-deletion-time-in-days 16