Generate keystore:
keytool -genkey -alias tomcat -keyalg RSA -keystore my.keystore -keysize 2048
Generate certificate signing request (CSR)
To resolve this issue, use an extra switch (-trustcacerts) in the keytool commands.
The command to import intermediate certificates from the intermediate.cer file to the certificates.ks keystore file should look like this:
keytool -storetype JCEKS -storepass passwd -keystore certificates.ks -import -alias intermediate -trustcacerts -file intermediate.cer
The command to import the certificate from the http.cer file to the certificates.ks keystore file should look like this:
keytool -storetype JCEKS -storepass passwd -keystore certificates.ks -import -alias http -trustcacerts -file http.cer
Re-attempt to complete the creation and importing process of a signed SSL Certificate.