{"id":4544,"date":"2020-04-10T10:36:48","date_gmt":"2020-04-10T08:36:48","guid":{"rendered":"http:\/\/www.laurentmarot.fr\/wordpress\/?p=4544"},"modified":"2020-04-10T14:53:39","modified_gmt":"2020-04-10T12:53:39","slug":"tls-setup-for-apache-tomcat","status":"publish","type":"post","link":"https:\/\/www.laurentmarot.fr\/wordpress\/?p=4544","title":{"rendered":"TLS setup for Apache Tomcat"},"content":{"rendered":"<p>Very first thing : <a href=\"http:\/\/tomcat.apache.org\/tomcat-9.0-doc\/ssl-howto.html\" target=\"_blank\" rel=\"noopener noreferrer\">Read That F*** Manual<\/a> !<\/p>\n<p>$JAVA_HOME\/bin\/keytool -genkey -alias tomcat -keyalg RSA<\/p>\n<p>and specify a password value of \u00ab\u00a0whatYouWantButNotChangeIt\u00a0\u00bb.<\/p>\n<div id=\"attachment_4546\" style=\"width: 310px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/www.laurentmarot.fr\/wordpress\/wp-content\/uploads\/2020\/04\/Capture-du-2020-04-10-10-41-12.png\" rel=\"lightbox[4544]\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4546\" class=\"size-medium wp-image-4546\" src=\"http:\/\/www.laurentmarot.fr\/wordpress\/wp-content\/uploads\/2020\/04\/Capture-du-2020-04-10-10-41-12-300x224.png\" alt=\"keystore\" width=\"300\" height=\"224\" srcset=\"https:\/\/www.laurentmarot.fr\/wordpress\/wp-content\/uploads\/2020\/04\/Capture-du-2020-04-10-10-41-12-300x224.png 300w, https:\/\/www.laurentmarot.fr\/wordpress\/wp-content\/uploads\/2020\/04\/Capture-du-2020-04-10-10-41-12-768x573.png 768w, https:\/\/www.laurentmarot.fr\/wordpress\/wp-content\/uploads\/2020\/04\/Capture-du-2020-04-10-10-41-12.png 854w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-4546\" class=\"wp-caption-text\">keystore<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Edit your server.xml file, beware that commented examples provided could be very far from what youy need :<\/p>\n<pre><code>&lt;!-- Define an SSL Coyote HTTP\/1.1 Connector on port 8443 --&gt;\r\n&lt;Connector\r\n           protocol=\"org.apache.coyote.http11.Http11NioProtocol\"\r\n           port=\"8443\" maxThreads=\"200\"\r\n           scheme=\"https\" secure=\"true\" SSLEnabled=\"true\"\r\n           keystoreFile=\"${user.home}\/.keystore\" keystorePass=\"changeit\"\r\n           clientAuth=\"false\" sslProtocol=\"TLS\"\/&gt;\r\n\r\n\r\n&lt;Connector port=\"8443\" protocol=\"org.apache.coyote.http11.Http11NioProtocol\"\r\n               maxThreads=\"150\" SSLEnabled=\"true\" scheme=\"https\" secure=\"true\"\r\nkeystoreFile=\"\/root\/.keystore\"\r\nkeystorePass=\"***********\"\r\nclientAuth=\"false\" sslProtocol=\"TLS\"&gt;\r\n<\/code><\/pre>\n\n","protected":false},"excerpt":{"rendered":"<p>Very first thing : Read That F*** Manual ! $JAVA_HOME\/bin\/keytool -genkey -alias tomcat -keyalg RSA and specify a password value of \u00ab\u00a0whatYouWantButNotChangeIt\u00a0\u00bb. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Edit your server.xml file, beware that commented examples provided could be very far from what youy need : &lt;!&#8211; Define [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"_links":{"self":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4544"}],"collection":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4544"}],"version-history":[{"count":9,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4544\/revisions"}],"predecessor-version":[{"id":4554,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/4544\/revisions\/4554"}],"wp:attachment":[{"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laurentmarot.fr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}