aws acm renew-certificate
command to renew a certificate.--certificate-arn
parameter.--private-key
parameter.aws acm renew-certificate --certificate-arn <certificate_arn>
aws acm delete-certificate
command to delete an expired certificate.--certificate-arn
parameter.aws acm delete-certificate --certificate-arn <certificate_arn>
aws acm update-certificate-options
command to enable automatic renewal for a certificate.--certificate-arn
parameter.RenewalEligibility
parameter to ENABLED
to enable automatic renewal.aws acm update-certificate-options --certificate-arn <certificate_arn> --options RenewalEligibility=ENABLED
<certificate_arn>
with the actual ARN of the certificate you want to remediate.
boto3.client('acm')
method to create a client object for AWS Certificate Manager.list_certificates()
method to retrieve a list of all certificates.NotAfter
attribute.renew_certificate()
method to renew the expiring certificate.list_certificates()
method to retrieve a list of all certificates.delete_certificate()
method to delete the unused certificate.import_certificate()
method to import a certificate from an external source.