Add a custom certificate
You can add a custom certificate using the CLI or in the Console. Your certificate has to be in PKCS #1 format and start with-----BEGIN RSA PRIVATE KEY-----.
If it doesn’t start that way, change the format.
To add your custom certificate, follow these steps:
- Using the CLI
- In the Console
-
Run the following command:
For example:You can optionally include intermediate SSL certificates by adding
‐‐chainfor each one. -
Redeploy your production environment with the following command:
Change the private key format
The expected format for your certificate’s private key is PKCS #1. Private keys in PKCS #1 format start with-----BEGIN RSA PRIVATE KEY-----.
If your private key starts with -----BEGIN PRIVATE KEY-----, it’s in PKCS #8 format, which isn’t appropriate.
To convert your private key (private.key) from PKCS #8 to PKCS #1 format (private.rsa.key), run the following command: