{"id":394,"date":"2010-04-05T14:23:19","date_gmt":"2010-04-05T06:23:19","guid":{"rendered":"http:\/\/amjet.dyndns.biz\/blog\/IT\/?p=394"},"modified":"2013-03-01T19:49:54","modified_gmt":"2013-03-01T11:49:54","slug":"tomcat-%e5%95%9f%e7%94%a8-ssl-%e5%8a%a0%e5%af%86","status":"publish","type":"post","link":"https:\/\/blog.amjet.biz\/IT\/?p=394","title":{"rendered":"Tomcat \u555f\u7528 SSL \u52a0\u5bc6"},"content":{"rendered":"<p>\u7576\u6211\u5011\u53d6\u5f97\u7533\u8acb\u6216\u81ea\u884c\u7522\u751f\u7684 certificate \u53ca private key \u5f8c\uff0c\u5148\u7528\u4ee5\u4e0b\u6307\u4ee4\u7522\u751f keystore<\/p>\n<p>openssl pkcs12 -export -out server.keystore -in server.cer -inkey server.key<\/p>\n<p>\u63a5\u8457\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u6aa2\u67e5\u7522\u751f\u7684 keystore \u662f\u5426\u6b63\u78ba\u7121\u8aa4<\/p>\n<p>keytool -list -keystore server.keystore -storetype PKCS12<\/p>\n<p>\u4ee5\u4e0a\u6b65\u9a5f\u5b8c\u6210\u5f8c\u4fee\u6539 tomcat \u8a2d\u5b9a\u6a94\uff0c\u555f\u7528 SSL<\/p>\n<p>&lt;tomcat home&gt;\/conf\/server.xml<\/p>\n<p>&lt;Connector port=&#8221;8443&#8243; protocol=&#8221;HTTP\/1.1&#8243; SSLEnabled=&#8221;true&#8221;<br \/>\nmaxThreads=&#8221;150&#8243; scheme=&#8221;https&#8221; secure=&#8221;true&#8221;<br \/>\nclientAuth=&#8221;false&#8221; sslProtocol=&#8221;TLS&#8221;<br \/>\nkeystoreFile=&#8221;conf\/server.keystore&#8221;<br \/>\nkeystorePass=&#8221;your_password&#8221;<br \/>\nkeystoreType=&#8221;pkcs12&#8243;<br \/>\n\/&gt;<\/p>\n<p>\u8acb\u4f9d\u64da\u60a8\u7684\u74b0\u5883\u4fee\u6539 keystoreFile \u6307\u5411\u6b63\u78ba\u7684\u8def\u5f91\u53ca\u6a94\u540d\uff0ckeystorePass \u8acb\u63db\u6210\u6b63\u78ba\u7684 keystore \u5bc6\u78bc\u3002Jboss \u8a2d\u5b9a\u4e5f\u975e\u5e38\u985e\u4f3c\uff0c\u53ea\u662f\u8a2d\u5b9a\u6a94\u4f4d\u7f6e\u5728 &lt;jboss home&gt;\/server\/default\/deploy\/jboss-web.deployer\/server.xml\u3002<\/p>\n<p><strong>[ratings]<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7576\u6211\u5011\u53d6\u5f97\u7533\u8acb\u6216\u81ea\u884c\u7522\u751f\u7684 certificate \u53ca private key \u5f8c\uff0c\u5148\u7528\u4ee5\u4e0b\u6307\u4ee4\u7522\u751f keystore openssl pkcs12 -export -out server.keystore -in server.cer -inkey server.key \u63a5\u8457\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u6aa2\u67e5\u7522\u751f\u7684 keystore \u662f\u5426\u6b63\u78ba\u7121\u8aa4 keytool -list -keystore server.keystore -storetype PKCS12 \u4ee5\u4e0a\u6b65\u9a5f\u5b8c\u6210\u5f8c\u4fee\u6539 tomcat \u8a2d\u5b9a\u6a94\uff0c\u555f\u7528 SSL &lt;tomcat home&gt;\/conf\/server.xml &lt;Connector port=&#8221;8443&#8243; protocol=&#8221;HTTP\/1.1&#8243; SSLEnabled=&#8221;true&#8221; maxThreads=&#8221;150&#8243; scheme=&#8221;https&#8221; secure=&#8221;true&#8221; clientAuth=&#8221;false&#8221; sslProtocol=&#8221;TLS&#8221; keystoreFile=&#8221;conf\/server.keystore&#8221; keystorePass=&#8221;your_password&#8221; keystoreType=&#8221;pkcs12&#8243; \/&gt; \u8acb\u4f9d\u64da\u60a8\u7684\u74b0\u5883\u4fee\u6539 keystoreFile \u6307\u5411\u6b63\u78ba\u7684\u8def\u5f91\u53ca\u6a94\u540d\uff0ckeystorePass \u8acb\u63db\u6210\u6b63\u78ba\u7684 keystore \u5bc6\u78bc\u3002Jboss \u8a2d\u5b9a\u4e5f\u975e\u5e38\u985e\u4f3c\uff0c\u53ea\u662f\u8a2d\u5b9a\u6a94\u4f4d\u7f6e\u5728 &lt;jboss home&gt;\/server\/default\/deploy\/jboss-web.deployer\/server.xml\u3002 [ratings]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-394","post","type-post","status-publish","format-standard","hentry","category-java"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u7576\u6211\u5011\u53d6\u5f97\u7533\u8acb\u6216\u81ea\u884c\u7522\u751f\u7684 certificate \u53ca private key \u5f8c\uff0c\u5148\u7528\u4ee5\u4e0b\u6307\u4ee4\u7522\u751f keystore openssl pkcs12 -export -out server.keystore -in server.cer -inkey server.key \u63a5\u8457\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u6aa2\u67e5\u7522\u751f\u7684 keystore \u662f\u5426\u6b63\u78ba\u7121\u8aa4 keytool -list -keystore server.keystore -storetype PKCS12 \u4ee5\u4e0a\u6b65\u9a5f\u5b8c\u6210\u5f8c\u4fee\u6539 tomcat \u8a2d\u5b9a\u6a94\uff0c\u555f\u7528 SSL \/conf\/server.xml \u8acb\u4f9d\u64da\u60a8\u7684\u74b0\u5883\u4fee\u6539 keystoreFile \u6307\u5411\u6b63\u78ba\u7684\u8def\u5f91\u53ca\u6a94\u540d\uff0ckeystorePass \u8acb\u63db\u6210\u6b63\u78ba\u7684 keystore \u5bc6\u78bc\u3002Jboss \u8a2d\u5b9a\u4e5f\u975e\u5e38\u985e\u4f3c\uff0c\u53ea\u662f\u8a2d\u5b9a\u6a94\u4f4d\u7f6e\u5728 \/server\/default\/deploy\/jboss-web.deployer\/server.xml\u3002 [ratings]\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"vincent\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/blog.amjet.biz\/IT\/?p=394\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"AmJet IT Blog | for IT professionals\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Tomcat \u555f\u7528 SSL \u52a0\u5bc6 | AmJet IT Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"\u7576\u6211\u5011\u53d6\u5f97\u7533\u8acb\u6216\u81ea\u884c\u7522\u751f\u7684 certificate \u53ca private key \u5f8c\uff0c\u5148\u7528\u4ee5\u4e0b\u6307\u4ee4\u7522\u751f keystore openssl pkcs12 -export -out server.keystore -in server.cer -inkey server.key \u63a5\u8457\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u6aa2\u67e5\u7522\u751f\u7684 keystore \u662f\u5426\u6b63\u78ba\u7121\u8aa4 keytool -list -keystore server.keystore -storetype PKCS12 \u4ee5\u4e0a\u6b65\u9a5f\u5b8c\u6210\u5f8c\u4fee\u6539 tomcat \u8a2d\u5b9a\u6a94\uff0c\u555f\u7528 SSL \/conf\/server.xml \u8acb\u4f9d\u64da\u60a8\u7684\u74b0\u5883\u4fee\u6539 keystoreFile \u6307\u5411\u6b63\u78ba\u7684\u8def\u5f91\u53ca\u6a94\u540d\uff0ckeystorePass \u8acb\u63db\u6210\u6b63\u78ba\u7684 keystore \u5bc6\u78bc\u3002Jboss \u8a2d\u5b9a\u4e5f\u975e\u5e38\u985e\u4f3c\uff0c\u53ea\u662f\u8a2d\u5b9a\u6a94\u4f4d\u7f6e\u5728 \/server\/default\/deploy\/jboss-web.deployer\/server.xml\u3002 [ratings]\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/blog.amjet.biz\/IT\/?p=394\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2010-04-05T06:23:19+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2013-03-01T11:49:54+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Tomcat \u555f\u7528 SSL \u52a0\u5bc6 | AmJet IT Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u7576\u6211\u5011\u53d6\u5f97\u7533\u8acb\u6216\u81ea\u884c\u7522\u751f\u7684 certificate \u53ca private key \u5f8c\uff0c\u5148\u7528\u4ee5\u4e0b\u6307\u4ee4\u7522\u751f keystore openssl pkcs12 -export -out server.keystore -in server.cer -inkey server.key \u63a5\u8457\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u6aa2\u67e5\u7522\u751f\u7684 keystore \u662f\u5426\u6b63\u78ba\u7121\u8aa4 keytool -list -keystore server.keystore -storetype PKCS12 \u4ee5\u4e0a\u6b65\u9a5f\u5b8c\u6210\u5f8c\u4fee\u6539 tomcat \u8a2d\u5b9a\u6a94\uff0c\u555f\u7528 SSL \/conf\/server.xml \u8acb\u4f9d\u64da\u60a8\u7684\u74b0\u5883\u4fee\u6539 keystoreFile \u6307\u5411\u6b63\u78ba\u7684\u8def\u5f91\u53ca\u6a94\u540d\uff0ckeystorePass \u8acb\u63db\u6210\u6b63\u78ba\u7684 keystore \u5bc6\u78bc\u3002Jboss \u8a2d\u5b9a\u4e5f\u975e\u5e38\u985e\u4f3c\uff0c\u53ea\u662f\u8a2d\u5b9a\u6a94\u4f4d\u7f6e\u5728 \/server\/default\/deploy\/jboss-web.deployer\/server.xml\u3002 [ratings]\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=394#article\",\"name\":\"Tomcat \\u555f\\u7528 SSL \\u52a0\\u5bc6 | AmJet IT Blog\",\"headline\":\"Tomcat \\u555f\\u7528 SSL \\u52a0\\u5bc6\",\"author\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#organization\"},\"datePublished\":\"2010-04-05T14:23:19+08:00\",\"dateModified\":\"2013-03-01T19:49:54+08:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=394#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=394#webpage\"},\"articleSection\":\"Java\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=394#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=5#listItem\",\"name\":\"Developer\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=5#listItem\",\"position\":2,\"name\":\"Developer\",\"item\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=5\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=8#listItem\",\"name\":\"Java\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=8#listItem\",\"position\":3,\"name\":\"Java\",\"item\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=8\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=394#listItem\",\"name\":\"Tomcat \\u555f\\u7528 SSL \\u52a0\\u5bc6\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=5#listItem\",\"name\":\"Developer\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=394#listItem\",\"position\":4,\"name\":\"Tomcat \\u555f\\u7528 SSL \\u52a0\\u5bc6\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=8#listItem\",\"name\":\"Java\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#organization\",\"name\":\"AmJet Digital\",\"description\":\"for IT professionals\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2\",\"name\":\"vincent\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=394#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8c6bcd6e8e7e1c9bce74184354da4a5c294d71657c7abc161841c4799d1b1a46?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"vincent\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=394#webpage\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=394\",\"name\":\"Tomcat \\u555f\\u7528 SSL \\u52a0\\u5bc6 | AmJet IT Blog\",\"description\":\"\\u7576\\u6211\\u5011\\u53d6\\u5f97\\u7533\\u8acb\\u6216\\u81ea\\u884c\\u7522\\u751f\\u7684 certificate \\u53ca private key \\u5f8c\\uff0c\\u5148\\u7528\\u4ee5\\u4e0b\\u6307\\u4ee4\\u7522\\u751f keystore openssl pkcs12 -export -out server.keystore -in server.cer -inkey server.key \\u63a5\\u8457\\u57f7\\u884c\\u4ee5\\u4e0b\\u6307\\u4ee4\\u6aa2\\u67e5\\u7522\\u751f\\u7684 keystore \\u662f\\u5426\\u6b63\\u78ba\\u7121\\u8aa4 keytool -list -keystore server.keystore -storetype PKCS12 \\u4ee5\\u4e0a\\u6b65\\u9a5f\\u5b8c\\u6210\\u5f8c\\u4fee\\u6539 tomcat \\u8a2d\\u5b9a\\u6a94\\uff0c\\u555f\\u7528 SSL \\\/conf\\\/server.xml \\u8acb\\u4f9d\\u64da\\u60a8\\u7684\\u74b0\\u5883\\u4fee\\u6539 keystoreFile \\u6307\\u5411\\u6b63\\u78ba\\u7684\\u8def\\u5f91\\u53ca\\u6a94\\u540d\\uff0ckeystorePass \\u8acb\\u63db\\u6210\\u6b63\\u78ba\\u7684 keystore \\u5bc6\\u78bc\\u3002Jboss \\u8a2d\\u5b9a\\u4e5f\\u975e\\u5e38\\u985e\\u4f3c\\uff0c\\u53ea\\u662f\\u8a2d\\u5b9a\\u6a94\\u4f4d\\u7f6e\\u5728 \\\/server\\\/default\\\/deploy\\\/jboss-web.deployer\\\/server.xml\\u3002 [ratings]\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=394#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\"},\"datePublished\":\"2010-04-05T14:23:19+08:00\",\"dateModified\":\"2013-03-01T19:49:54+08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#website\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/\",\"name\":\"AmJet IT Blog\",\"description\":\"for IT professionals\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Tomcat \u555f\u7528 SSL \u52a0\u5bc6 | AmJet IT Blog","description":"\u7576\u6211\u5011\u53d6\u5f97\u7533\u8acb\u6216\u81ea\u884c\u7522\u751f\u7684 certificate \u53ca private key \u5f8c\uff0c\u5148\u7528\u4ee5\u4e0b\u6307\u4ee4\u7522\u751f keystore openssl pkcs12 -export -out server.keystore -in server.cer -inkey server.key \u63a5\u8457\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u6aa2\u67e5\u7522\u751f\u7684 keystore \u662f\u5426\u6b63\u78ba\u7121\u8aa4 keytool -list -keystore server.keystore -storetype PKCS12 \u4ee5\u4e0a\u6b65\u9a5f\u5b8c\u6210\u5f8c\u4fee\u6539 tomcat \u8a2d\u5b9a\u6a94\uff0c\u555f\u7528 SSL \/conf\/server.xml \u8acb\u4f9d\u64da\u60a8\u7684\u74b0\u5883\u4fee\u6539 keystoreFile \u6307\u5411\u6b63\u78ba\u7684\u8def\u5f91\u53ca\u6a94\u540d\uff0ckeystorePass \u8acb\u63db\u6210\u6b63\u78ba\u7684 keystore \u5bc6\u78bc\u3002Jboss \u8a2d\u5b9a\u4e5f\u975e\u5e38\u985e\u4f3c\uff0c\u53ea\u662f\u8a2d\u5b9a\u6a94\u4f4d\u7f6e\u5728 \/server\/default\/deploy\/jboss-web.deployer\/server.xml\u3002 [ratings]","canonical_url":"https:\/\/blog.amjet.biz\/IT\/?p=394","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.amjet.biz\/IT\/?p=394#article","name":"Tomcat \u555f\u7528 SSL \u52a0\u5bc6 | AmJet IT Blog","headline":"Tomcat \u555f\u7528 SSL \u52a0\u5bc6","author":{"@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author"},"publisher":{"@id":"https:\/\/blog.amjet.biz\/IT\/#organization"},"datePublished":"2010-04-05T14:23:19+08:00","dateModified":"2013-03-01T19:49:54+08:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/blog.amjet.biz\/IT\/?p=394#webpage"},"isPartOf":{"@id":"https:\/\/blog.amjet.biz\/IT\/?p=394#webpage"},"articleSection":"Java"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.amjet.biz\/IT\/?p=394#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT#listItem","position":1,"name":"Home","item":"https:\/\/blog.amjet.biz\/IT","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=5#listItem","name":"Developer"}},{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=5#listItem","position":2,"name":"Developer","item":"https:\/\/blog.amjet.biz\/IT\/?cat=5","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=8#listItem","name":"Java"},"previousItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=8#listItem","position":3,"name":"Java","item":"https:\/\/blog.amjet.biz\/IT\/?cat=8","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?p=394#listItem","name":"Tomcat \u555f\u7528 SSL \u52a0\u5bc6"},"previousItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=5#listItem","name":"Developer"}},{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?p=394#listItem","position":4,"name":"Tomcat \u555f\u7528 SSL \u52a0\u5bc6","previousItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=8#listItem","name":"Java"}}]},{"@type":"Organization","@id":"https:\/\/blog.amjet.biz\/IT\/#organization","name":"AmJet Digital","description":"for IT professionals","url":"https:\/\/blog.amjet.biz\/IT\/"},{"@type":"Person","@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author","url":"https:\/\/blog.amjet.biz\/IT\/?author=2","name":"vincent","image":{"@type":"ImageObject","@id":"https:\/\/blog.amjet.biz\/IT\/?p=394#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/8c6bcd6e8e7e1c9bce74184354da4a5c294d71657c7abc161841c4799d1b1a46?s=96&d=mm&r=g","width":96,"height":96,"caption":"vincent"}},{"@type":"WebPage","@id":"https:\/\/blog.amjet.biz\/IT\/?p=394#webpage","url":"https:\/\/blog.amjet.biz\/IT\/?p=394","name":"Tomcat \u555f\u7528 SSL \u52a0\u5bc6 | AmJet IT Blog","description":"\u7576\u6211\u5011\u53d6\u5f97\u7533\u8acb\u6216\u81ea\u884c\u7522\u751f\u7684 certificate \u53ca private key \u5f8c\uff0c\u5148\u7528\u4ee5\u4e0b\u6307\u4ee4\u7522\u751f keystore openssl pkcs12 -export -out server.keystore -in server.cer -inkey server.key \u63a5\u8457\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u6aa2\u67e5\u7522\u751f\u7684 keystore \u662f\u5426\u6b63\u78ba\u7121\u8aa4 keytool -list -keystore server.keystore -storetype PKCS12 \u4ee5\u4e0a\u6b65\u9a5f\u5b8c\u6210\u5f8c\u4fee\u6539 tomcat \u8a2d\u5b9a\u6a94\uff0c\u555f\u7528 SSL \/conf\/server.xml \u8acb\u4f9d\u64da\u60a8\u7684\u74b0\u5883\u4fee\u6539 keystoreFile \u6307\u5411\u6b63\u78ba\u7684\u8def\u5f91\u53ca\u6a94\u540d\uff0ckeystorePass \u8acb\u63db\u6210\u6b63\u78ba\u7684 keystore \u5bc6\u78bc\u3002Jboss \u8a2d\u5b9a\u4e5f\u975e\u5e38\u985e\u4f3c\uff0c\u53ea\u662f\u8a2d\u5b9a\u6a94\u4f4d\u7f6e\u5728 \/server\/default\/deploy\/jboss-web.deployer\/server.xml\u3002 [ratings]","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/blog.amjet.biz\/IT\/#website"},"breadcrumb":{"@id":"https:\/\/blog.amjet.biz\/IT\/?p=394#breadcrumblist"},"author":{"@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author"},"creator":{"@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author"},"datePublished":"2010-04-05T14:23:19+08:00","dateModified":"2013-03-01T19:49:54+08:00"},{"@type":"WebSite","@id":"https:\/\/blog.amjet.biz\/IT\/#website","url":"https:\/\/blog.amjet.biz\/IT\/","name":"AmJet IT Blog","description":"for IT professionals","inLanguage":"en-US","publisher":{"@id":"https:\/\/blog.amjet.biz\/IT\/#organization"}}]},"og:locale":"en_US","og:site_name":"AmJet IT Blog | for IT professionals","og:type":"article","og:title":"Tomcat \u555f\u7528 SSL \u52a0\u5bc6 | AmJet IT Blog","og:description":"\u7576\u6211\u5011\u53d6\u5f97\u7533\u8acb\u6216\u81ea\u884c\u7522\u751f\u7684 certificate \u53ca private key \u5f8c\uff0c\u5148\u7528\u4ee5\u4e0b\u6307\u4ee4\u7522\u751f keystore openssl pkcs12 -export -out server.keystore -in server.cer -inkey server.key \u63a5\u8457\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u6aa2\u67e5\u7522\u751f\u7684 keystore \u662f\u5426\u6b63\u78ba\u7121\u8aa4 keytool -list -keystore server.keystore -storetype PKCS12 \u4ee5\u4e0a\u6b65\u9a5f\u5b8c\u6210\u5f8c\u4fee\u6539 tomcat \u8a2d\u5b9a\u6a94\uff0c\u555f\u7528 SSL \/conf\/server.xml \u8acb\u4f9d\u64da\u60a8\u7684\u74b0\u5883\u4fee\u6539 keystoreFile \u6307\u5411\u6b63\u78ba\u7684\u8def\u5f91\u53ca\u6a94\u540d\uff0ckeystorePass \u8acb\u63db\u6210\u6b63\u78ba\u7684 keystore \u5bc6\u78bc\u3002Jboss \u8a2d\u5b9a\u4e5f\u975e\u5e38\u985e\u4f3c\uff0c\u53ea\u662f\u8a2d\u5b9a\u6a94\u4f4d\u7f6e\u5728 \/server\/default\/deploy\/jboss-web.deployer\/server.xml\u3002 [ratings]","og:url":"https:\/\/blog.amjet.biz\/IT\/?p=394","article:published_time":"2010-04-05T06:23:19+00:00","article:modified_time":"2013-03-01T11:49:54+00:00","twitter:card":"summary","twitter:title":"Tomcat \u555f\u7528 SSL \u52a0\u5bc6 | AmJet IT Blog","twitter:description":"\u7576\u6211\u5011\u53d6\u5f97\u7533\u8acb\u6216\u81ea\u884c\u7522\u751f\u7684 certificate \u53ca private key \u5f8c\uff0c\u5148\u7528\u4ee5\u4e0b\u6307\u4ee4\u7522\u751f keystore openssl pkcs12 -export -out server.keystore -in server.cer -inkey server.key \u63a5\u8457\u57f7\u884c\u4ee5\u4e0b\u6307\u4ee4\u6aa2\u67e5\u7522\u751f\u7684 keystore \u662f\u5426\u6b63\u78ba\u7121\u8aa4 keytool -list -keystore server.keystore -storetype PKCS12 \u4ee5\u4e0a\u6b65\u9a5f\u5b8c\u6210\u5f8c\u4fee\u6539 tomcat \u8a2d\u5b9a\u6a94\uff0c\u555f\u7528 SSL \/conf\/server.xml \u8acb\u4f9d\u64da\u60a8\u7684\u74b0\u5883\u4fee\u6539 keystoreFile \u6307\u5411\u6b63\u78ba\u7684\u8def\u5f91\u53ca\u6a94\u540d\uff0ckeystorePass \u8acb\u63db\u6210\u6b63\u78ba\u7684 keystore \u5bc6\u78bc\u3002Jboss \u8a2d\u5b9a\u4e5f\u975e\u5e38\u985e\u4f3c\uff0c\u53ea\u662f\u8a2d\u5b9a\u6a94\u4f4d\u7f6e\u5728 \/server\/default\/deploy\/jboss-web.deployer\/server.xml\u3002 [ratings]"},"aioseo_meta_data":{"post_id":"394","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-24 02:26:56","updated":"2025-06-05 09:08:26","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.amjet.biz\/IT\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.amjet.biz\/IT\/?cat=5\" title=\"Developer\">Developer<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.amjet.biz\/IT\/?cat=8\" title=\"Java\">Java<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tTomcat \u555f\u7528 SSL \u52a0\u5bc6\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/blog.amjet.biz\/IT"},{"label":"Developer","link":"https:\/\/blog.amjet.biz\/IT\/?cat=5"},{"label":"Java","link":"https:\/\/blog.amjet.biz\/IT\/?cat=8"},{"label":"Tomcat \u555f\u7528 SSL \u52a0\u5bc6","link":"https:\/\/blog.amjet.biz\/IT\/?p=394"}],"_links":{"self":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=394"}],"version-history":[{"count":3,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/394\/revisions"}],"predecessor-version":[{"id":678,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/394\/revisions\/678"}],"wp:attachment":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}