{"id":844,"date":"2013-05-22T08:00:25","date_gmt":"2013-05-22T08:00:25","guid":{"rendered":"https:\/\/cowman-chiang.no-ip.org\/wordpress\/?p=844"},"modified":"2019-06-20T10:26:10","modified_gmt":"2019-06-20T02:26:10","slug":"tomcat%e8%a8%ad%e5%ae%9ahttps","status":"publish","type":"post","link":"https:\/\/cowmanchiang.me\/wp\/?p=844","title":{"rendered":"Tomcat\u8a2d\u5b9ahttps"},"content":{"rendered":"<p>\u4f7f\u7528keytool\u7522\u751fRSA<\/p>\n<h1>cd \/usr\/java\/jdk1.7.0_21\/bin\/<\/h1>\n<h1>.\/keytool -genkey -alias tomcat -keyalg RSA<\/h1>\n<p><code>Enter keystore password:<br \/>\nRe-enter new password:<br \/>\nWhat is your first and last name?<br \/>\nWhat is the name of your organizational unit?<br \/>\nWhat is the name of your organization?<br \/>\nWhat is the name of your City or Locality?<br \/>\nWhat is the name of your State or Province?<br \/>\nWhat is the two-letter country code for this unit?<br \/>\nIs CN=udn, OU=udn, O=udn, L=taipei, ST=taiwan, C=TW correct?<br \/>\nEnter key password for <tomcat><br \/>\n        (RETURN if same as keystore password):<\/code><\/p>\n<p>\u7136\u5f8c\u5728\u7de8\u8f2fserver.xml<\/p>\n<h1>vim \/usr\/data\/apache-tomcat-7.0.40\/conf\/server.xml<\/h1>\n<p>\u53d6\u6d88\u5c0dConnector port=&#8221;8443&#8243;\u7684\u8a3b\u89e3\uff0c\u589e\u52a0keystorePass\u7684\u63cf\u8ff0<\/p>\n<pre lang=\"xml\">    <Connector port=\"8443\" protocol=\"HTTP\/1.1\" SSLEnabled=\"true\"\n               maxThreads=\"150\" scheme=\"https\" secure=\"true\" keystorePass=\"keytool\u6642\u8a2d\u5b9a\u7684pass\"\n               clientAuth=\"false\" sslProtocol=\"TLS\" \/>\n<\/pre>\n<p>\u6700\u5f8c\u5728\u91cd\u65b0\u555f\u52d5tomcat<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528keytool\u7522\u751fRSA cd \/usr\/java\/jdk1.7.0_21\/bin\/ .\/keytool -genkey -alias tomcat -keyalg RSA Enter keystore password: Re-enter new password: What is your first and last name? What is the name of your organizational unit? What is the name of your organization? What is the &hellip; <a href=\"https:\/\/cowmanchiang.me\/wp\/?p=844\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[],"class_list":["post-844","post","type-post","status-publish","format-standard","hentry","category-jsp"],"_links":{"self":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/844","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=844"}],"version-history":[{"count":1,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/844\/revisions"}],"predecessor-version":[{"id":2081,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=\/wp\/v2\/posts\/844\/revisions\/2081"}],"wp:attachment":[{"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cowmanchiang.me\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}