| |||||
Enable SSL and several domains on Tomcat 101. get CSR and private keycreate CSR at domain-hoster.de or other web site save CSR to file mydomain.csr save key to file mydomain.pcks8 2. get certificate from CAGeoTrust or other get files 3. create JAVA keystorecreate new JAVA keystore (JKS) my.keystore with password mypassword save keystore my.keystore to Tomcat Home\ 4. edit server.xmlenable SSL connector at port 443 additionally <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="443" /> <Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true"> <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> <SSLHostConfig> <Certificate certificateKeystoreFile="my.keystore" certificateKeystorePassword="mypassword" type="RSA" /> </SSLHostConfig> </Connector> 5. several domainsenable other host myotherdomain (beware of comments in .xml) <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host><Host name="myotherdomain" appBase="webapps.myotherdomain" unpackWARs="true" autoDeploy="true"> <Alias>myotherdomain</Alias> <Context path="" docbase="."/> </Host> ...
|