The signing authority would send you two files, the
actual certificate and
chain certificates.
Importing the certificate into JAVA keystore
- Use the following command to import the chain certificate:
keytool -import -alias root -keystore <your_keystore_filename>
-trustcacerts -file <filename_of_the_chain_certificate>
- Use the following command to import the public certificate:
keytool -import -alias tomcat -keystore <your_keystore_filename>
-file <your_certificate_filename>
Importing the certificate for AWS beanstalk
You need to update an SSL certificate for an HTTPS load balancer:
- Open the Amazon EC2 console at
https://console.aws.amazon.com/ec2/.
- In the navigation pane, under
LOAD BALANCING, click
Load Balancers.
- Select your load balancer.
- In the
Listeners tab, click
Change in the
SSL Certificate column for the certificate.
- In the
Select Certificate dialog box, do one of the following:
- If you have already uploaded an SSL certificate using IAM, select
Choose an existing SSL Certificates, select the certificate from
Certificate Name, and then click
Save.
- If you have an SSL certificate to upload, select
Upload a new SSL Certificate. Enter a name for the certificate, copy the required information to the form, and then click
Save. Note that the certificate chain is not required if the certificate is a self-signed certificate.