I am using tomcat 9 and trying to configure SSL. STEP1 : Created a tomcat.jks certificate using the command keytool -genkey -alias tomcat -keyalg RSA -keysize 2048 -keystore tomcat.jks and stored in%CATALINA_HOME%\ssl location.
STEP2. in server.xml, add below:
<Connector port="8443"
org.apache.coyote.http11.Http11Processor.service="HTTP/1.1"
connectionTimeout="20000"
sslEnabled="true"
scheme="https"
certificateKeystoreFile="ssl/tomcat.jks"
certificateKeystorePassword="tomcat"
clientAuth="false"
sslProtocol="TLS">
</Connector>
While launching https://localhost:8443 getting the error as Failed to load resource: net::ERR_FAILED . Any settings i am missing. Please help.