Run java Spring project in port 8443 ( https ) in localhost -
i have been trying run java spring project in https mode in localhost.
the project works in http form features, need run in https
i have changed default port 8443 in server.xml in tomcat. when run spring project, url shows https://localhost:8443 instead of localhost:8080 page not load. says page not found.
please me resolve issue.
you need set connector listens on port 8443 , ssl certificate (keystore file in example below, set location see fit):
<connector port="8443" protocol="org.apache.coyote.http11.http11protocol" maxthreads="150" sslenabled="true" scheme="https" secure="true" clientauth="false" sslprotocol="tls" keystorefile="${user.home}/keystore" keystorepass="tomcat" keyalias="tomcat"/> you can buy ssl certificate or locally sign (although you’ll browser exception ask manual confirmation accept it). latter can use java’s keytool.
Comments
Post a Comment