What is the good way to install a SSL Certificate for Jetty Java HTTP Servlet WebServer?
Please follow these instructions to install your SSL certificate on Jetty Java HTTP Servlet WebServer:
Installing the Certificates to the Keystore
Note: The certificate must be installed to the same keystore that was used to generate your CSR.
1. Once you received your SSL certificate by e-mail, please copy and paste it into a text file (with Notepad or Wordpad) and save the file with the sslcert.crt extension. (Include the tags -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----).
2. Get your intermediate certificate. Copy and paste the contents into a inter.crt file by using a text editor software (such as Notepad or Wordpad).
3. Launch the following commands:
keytool -import -trustcacerts -alias INTER -file inter.crt -keystore NEWkeystore
keytool -import -alias your_alias_name -file sslcert.crt -keystore NEWkeystore
Note: Change NEWkeystore to your keystore. The keyword after "-alias" is the unique friendly name you assigned to each certificate when generating your private key and CSR.
4. The SSL Port needs to be enabled on Jetty Java HTTP Servlet Web Server as well as on any firewall or router in place.