If you have a .pem (Privacy Enhanced Mail) and .key file, you can update an SSL certificate in AWS using the AWS Certificate Manager (ACM). Here are the steps you need to follow:
- Access the AWS Console and navigate to AWS Certificate Manager.
- Select the region where you want to manage your certificate.
- On the ACM page, click 'Provision certificates' and then 'Get started' under 'Import a certificate'.
- On the import page, you need to fill in three fields: Certificate body, Certificate private key, and Certificate chain.
If your .pem file includes three distinct parts (usually identified by "BEGIN CERTIFICATE" and "END CERTIFICATE" for each certificate), it contains the server certificate (your own certificate), followed by the intermediate certificate chain.
5. In the 'Certificate body' field, copy and paste only the first block of your .pem file, which corresponds to your server certificate.