To support ssl in tomcat .... I am making a Keystore file. which contain a self-signed certificate ..... and then open the server.xml file tomcat 7.0 and find this code in the server.xml file
` `
and remove the comment from the connector and add the KeystoreFile and KeystorePass entry to the code without commenting, for example, following this .........
` <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" **keystoreFile**="d:\cpademo.keystore" **keystorePass**="cpademo"/> ` The above code works in tomcat 6.0...and allow https connection with tomcat but i get the error in tomcat 7.0 log file which indicate that it does not suppoert connection to https 8443 connection. Error in log file is following as..... ERROR: SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-ap r-8443"] java.lang.Exception: Connector attribute SSLCertificateFile must be defined when using SSL with APR at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:484) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:554)
Help me deal with this problem. Thanks in advance
source share