{"id":522,"date":"2019-05-21T17:29:04","date_gmt":"2019-05-21T17:29:04","guid":{"rendered":"https:\/\/unsrewiki.1sys1.com\/?p=522"},"modified":"2019-05-21T17:29:04","modified_gmt":"2019-05-21T17:29:04","slug":"installing-an-ssl-on-tomcat","status":"publish","type":"post","link":"https:\/\/server-help.org\/index.php\/2019\/05\/21\/installing-an-ssl-on-tomcat\/","title":{"rendered":"Installing an SSL on Tomcat"},"content":{"rendered":"\n<p>With Tomcat there are a number of different ways to install and use a SSL but I will show you how to do this the easy way.<\/p>\n\n\n\n<p>1) Login to your IONOS Control Panel and go to Domains &amp; SSL > Select your Domain >  Create and Download .PFX File > Download<\/p>\n\n\n\n<p>2) Save the file and make a note of the password you used when saving.<\/p>\n\n\n\n<p>3) Transfer the file to your server. In this example the file is being saved to \/opt\/tomcat\/myssl\/ssl.pfx<\/p>\n\n\n\n<p>4) SSH into your server<\/p>\n\n\n\n<p>5) vi \/opt\/tomcat\/conf\/server.xml<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Connector port=\"443\" protocol=\"org.apache.coyote.http11.Http11NioProtocol\"\n               maxThreads=\"150\"\n               SSLEnabled=\"true\"\n               scheme=\"https\"\n               secure=\"true\"\n               clientAuth=\"false\"\n               sslProtocol=\"TLS\"\n               keystoreFile=\"\/opt\/tomcat\/myssl\/ssl.pfx\"\n               keystorePass=\"mySSLPassword\"\n               keystoreType=\"PKCS12\"\/><\/code><\/pre>\n\n\n\n<p>Make a note of the Connector port, keystoreFile, and keystorePass as your entries may be different. Its possible your Tomcat may also be run as a proxy on a port other than 443 such as 8443.<\/p>\n\n\n\n<p>Next you will need to restart Tomcat<\/p>\n\n\n\n<p>6) cd \/opt\/tomcat\/bin<\/p>\n\n\n\n<p>7) .\/shutdown.sh<\/p>\n\n\n\n<p>8) .\/startup.sh<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Tomcat there are a number of different ways to install and use a SSL but I will show you how to do this the easy way. 1) Login to your IONOS Control Panel and go to Domains &amp; SSL > Select your Domain > Create and Download .PFX File > Download 2) Save the&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/522"}],"collection":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/comments?post=522"}],"version-history":[{"count":1,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/522\/revisions"}],"predecessor-version":[{"id":523,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/522\/revisions\/523"}],"wp:attachment":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/media?parent=522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/categories?post=522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/tags?post=522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}