{"id":1782,"date":"2012-12-05T11:55:50","date_gmt":"2012-12-05T03:55:50","guid":{"rendered":"http:\/\/rmohan.com\/?p=1782"},"modified":"2012-12-05T12:34:51","modified_gmt":"2012-12-05T04:34:51","slug":"enable-ssl-in-tomcat","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=1782","title":{"rendered":"Enable SSL in Tomcat"},"content":{"rendered":"<p><strong>Step 1<\/strong><br \/> Windows[goto Command]<br \/> %JAVA_HOME%\\bin\\keytool -genkey<\/p>\n<p>Enter all the details which keytool is going to prompt. (rememeber the password)<\/p>\n<p>once you done, please go to your [USER_HOME](document &amp; settings), locate the .keystore.<\/p>\n<p>Copy this file and paste in tomcat root folder.<\/p>\n<p><strong>Step 2<\/strong><br \/> Open [tomcat_home]\/conf\/server.xml<\/p>\n<p>uncomment the SSL config entry. And configure the SSL certificate info.[see beloe]<br \/> &lt;Connector port=&#8221;8443&#8243; protocol=&#8221;HTTP\/1.1&#8243; SSLEnabled=&#8221;true&#8221;<br \/> maxThreads=&#8221;150&#8243; scheme=&#8221;https&#8221; secure=&#8221;true&#8221;<br \/> clientAuth=&#8221;false&#8221; sslProtocol=&#8221;TLS&#8221;<strong> keystoreFile=\u201d.keystore\u201d keystorePass=\u201d12345678?<\/strong> \/&gt;<\/p>\n<p><strong>Step 3<\/strong><br \/> Start tomcat<br \/> [tomcat_home]\/bin\/start-up.bat<br \/> in tomcat console you will see a message<br \/> <strong>INFO: Initializing Coyote HTTP\/1.1 on http-8443<\/strong><\/p>\n<p>Now open a new browser and type <strong>https:\/\/localhost:8443\/<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1 Windows[goto Command] %JAVA_HOME%\\bin\\keytool -genkey<\/p>\n<p>Enter all the details which keytool is going to prompt. (rememeber the password)<\/p>\n<p>once you done, please go to your [USER_HOME](document &amp; settings), locate the .keystore.<\/p>\n<p>Copy this file and paste in tomcat root folder.<\/p>\n<p>Step 2 Open [tomcat_home]\/conf\/server.xml<\/p>\n<p>uncomment the SSL config entry. And configure the SSL certificate [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1782"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1782"}],"version-history":[{"count":6,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1782\/revisions"}],"predecessor-version":[{"id":1785,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1782\/revisions\/1785"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}