Generate private key and csr file
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
server.key: it is the private key used on the TLS protocol.
server.csr: it is the required certificate signing request.
If all three certificates are listed separately, use the command:
cat your_domain.crt intermediate.crt root.crt >> ssl-bundle.crt
If the intermediate certificates are in one bundle, run:
cat your_domain.crt your_domain.ca-bundle >> ssl-bundle.crt
Make sure you save the ssl-bundle.crt file in the etc/ssl directory.
For Comodo SSL
cat SectigoRSAOrganizationValidationSecureServerCA.crt USERTrustRSAAAACA.crt AAACertificateServices.crt > your_domain.ca-bundle
To Update new SSL certificate in AWS Certificate Manager
Certificate body: STAR_your_domain.crt
Certificate private key: server.key
Certificate chain: your_domain.ca-bundle