{"id":12292,"date":"2025-04-18T19:26:55","date_gmt":"2025-04-18T11:26:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/12292.html"},"modified":"2025-04-18T19:26:55","modified_gmt":"2025-04-18T11:26:55","slug":"javax-net-ssl-sslhandshakeexception-java-security-cert-certificateexception-%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%af%81%e4%b9%a6%e9%93%be%e9%aa%8c%e8%af%81%e5%a4%b1%e8%b4%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/12292.html","title":{"rendered":"javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: \u670d\u52a1\u5668\u8bc1\u4e66\u94fe\u9a8c\u8bc1\u5931\u8d25"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418112654-680236fe29573.png\" \/><\/p>\n<p>\u8bb0\u5f55\u95ee\u9898&#xff1a;javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: \u670d\u52a1\u5668\u8bc1\u4e66\u94fe\u9a8c\u8bc1\u5931\u8d25\u5904\u7406\u6216\u63d0\u793ajavax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed Error\u4e5f\u662f\u540c\u6837\u7684\u95ee\u9898<\/p>\n<p>\u6839\u636e\u5f02\u5e38\u4fe1\u606f\u521d\u6b65\u5224\u65ad\u4e3ahttps\u8bc1\u4e66\u95ee\u9898<\/p>\n<p>1\u3001\u68c0\u67e5\u670d\u52a1\u65f6\u95f4\u662f\u5426\u5728\u8bc1\u4e66\u6709\u6548\u671f\u5185&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u57df\u540d\u5730\u5740\u67e5\u770bSSL\u8bc1\u4e66\u76f8\u5173\u4fe1\u606f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"33\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418112654-680236fe700c2.png\" width=\"320\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"227\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418112654-680236fe7be21.png\" width=\"218\" \/><\/p>\n<p>2\u3001 \u67e5\u770b\u670d\u52a1\u5668Java\u5b89\u88c5\u4f4d\u7f6e<\/p>\n<p>which Java<\/p>\n<p>3\u3001\u5bfc\u51fa\u8bc1\u4e66&#xff08;\u8bc1\u4e66\u683c\u5f0f\u4e3acrt\u6216\u8005cer\u5747\u53ef&#xff09;\u4e0a\u4f20\u81f3\u670d\u52a1\u5668\u4efb\u610f\u76ee\u5f55&#xff0c;\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u884c&#xff0c;\u5c06\u8bc1\u4e66\u6dfb\u52a0\u5230\u8bc1\u4e66\u5217\u8868\u4e2d<\/p>\n<p>keytool -import -noprompt -trustcacerts -alias &lt;AliasName&gt; -file &lt;certificate&gt; -keystore &lt;KeystoreFile&gt; -storepass &lt;Password&gt;<\/p>\n<p>\u8bf4\u660e&#xff1a;<\/p>\n<p>-noprompt \u662f\u65e0\u9700\u786e\u8ba4\u00a0<\/p>\n<p>-trustcacerts\u00a0\u9009\u9879\u544a\u8bc9\u00a0keytool\u00a0\u5c06\u5bfc\u5165\u7684\u8bc1\u4e66\u6dfb\u52a0\u5230\u4fe1\u4efb\u8bc1\u4e66\u5e93&#xff08;TrustStore&#xff09;\u4e2d<\/p>\n<ul>\n<li>&lt;AliasName&gt;: \u6211\u4eec\u7684\u8bc1\u4e66\u540d\u79f0\u4e3axxx.cer, \u8fd9\u91cc\u53ef\u4ee5\u4f7f\u7528xxx\u4f5c\u4e3a\u522b\u540d<\/li>\n<li>&lt;certificate&gt;&#xff1a;\u53ef\u4ee5\u4f7f\u7528\u8bc1\u4e66\u7684\u7edd\u5bf9\u8def\u5f84\u4e5f\u53ef\u4ee5\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84&#xff0c;\u6bd4\u5982\u6211\u4eec\u8fd9\u91cc\u4e3a.\/xxx.cer<\/li>\n<li>&lt;KeystoreFile&gt;&#xff1a;keystore\u6587\u4ef6&#xff0c;\u6211\u4eec\u8fd9\u91cc\u4f7f\u7528\u76f8\u5bf9\u8def\u5f84&#xff0c;..\/jre\/lib\/security\/cacerts<\/li>\n<li>&lt;Password&gt;&#xff1a;java\u9ed8\u8ba4changeit<\/li>\n<\/ul>\n<p>keytool -import -alias bjcaDev -file _.isignet.cn.crt -keystore &#034;\/opt\/econtract\/jdk1.8.0_191\/jre\/lib\/security\/cacerts&#034;  -storepass changeit <\/p>\n<p>\u00a0&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;keytool \u547d\u4ee4\u7684\u6269\u5c55\u9605\u8bfb&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>Keytool \u662f\u4e00\u4e2a Java\u6570\u636e\u8bc1\u4e66\u7684\u7ba1\u7406\u5de5\u5177, Keytool\u5c06\u5bc6\u94a5&#xff08;key&#xff09;\u548c\u8bc1\u4e66&#xff08;certificates&#xff09;\u5b58\u5728\u4e00\u4e2a\u79f0\u4e3a keystore\u7684\u6587\u4ef6\u4e2d<\/p>\n<p>keystore\u6587\u4ef6\u4ecb\u7ecd&#xff1a;<\/p>\n<p>\u5728keystore\u91cc&#xff0c;\u5305\u542b\u4e24\u79cd\u6570\u636e&#xff1a;<\/p>\n<ul>\n<li>\u5bc6\u94a5\u5b9e\u4f53&#xff08;key entity&#xff09; &#8211;\u5bc6\u94a5&#xff08;secret key&#xff09;\u53c8\u6216\u8005\u662f\u79c1\u94a5\u548c\u914d\u5bf9\u516c\u94a5&#xff08;\u91c7\u7528\u975e\u5bf9\u79f0\u52a0\u5bc6&#xff09;<\/li>\n<li>\u53ef\u4fe1\u4efb\u7684\u8bc1\u4e66\u5b9e\u4f53&#xff08;trusted certificate entries&#xff09;\u2014\u2014\u53ea\u5305\u542b\u516c\u94a5<\/li>\n<\/ul>\n<p>\u6211\u4eec\u5e38\u8bf4\u7684\u8bc1\u4e66\u5c31\u662f\u5c31\u662f\u4e0a\u9762\u7684\u516c\u94a5&#xff0c;\u516c\u94a5\u662f\u516c\u5f00\u7ed9\u5176\u5b83\u4eba\u4f7f\u7528\u7684\u3002<\/p>\n<p id=\"\u8bc1\u4e66\u540e\u7f00\u89e3\u91ca\">\u8bc1\u4e66\u540e\u7f00\u89e3\u91ca<\/p>\n<ul>\n<li>jks\u00a0\u662fJava\u7684keytool\u8bc1\u4e66\u5de5\u5177\u652f\u6301\u7684\u8bc1\u4e66\u79c1\u94a5\u683c\u5f0f&#xff1b;<\/li>\n<li>pfx\u00a0\u662f\u5fae\u8f6f\u652f\u6301\u7684\u79c1\u94a5\u683c\u5f0f&#xff08;p12\u662fpfx\u7684\u65b0\u683c\u5f0f&#xff09;&#xff1b;<\/li>\n<li>cer\u00a0\/\u00a0crt\u00a0\u662f\u8bc1\u4e66\u7684\u516c\u94a5\u683c\u5f0f&#xff08;cer\u662fcrt\u8bc1\u4e66\u7684\u5fae\u8f6f\u5f62\u5f0f&#xff09;<\/li>\n<li>csr\u00a0\u6570\u5b57\u8bc1\u4e66\u7b7e\u540d\u8bf7\u6c42\u6587\u4ef6&#xff08;Cerificate Signing Request&#xff09;<\/li>\n<\/ul>\n<p>\u6269\u5c55&#xff1a;<\/p>\n<ul>\n<li>.der\u00a0.cer\u00a0&#xff1a; \u6b64\u8bc1\u4e66\u6587\u4ef6\u662f\u4e8c\u8fdb\u5236\u683c\u5f0f&#xff0c;\u53ea\u542b\u6709\u8bc1\u4e66\u4fe1\u606f&#xff0c;\u4e0d\u5305\u542b\u79c1\u94a5\u3002<\/li>\n<li>.crt\u00a0&#xff1a; \u6b64\u8bc1\u4e66\u6587\u4ef6\u662f\u4e8c\u8fdb\u5236\u683c\u5f0f\u6216\u6587\u672c\u683c\u5f0f&#xff0c;\u4e00\u822c\u4e3a\u6587\u672c\u683c\u5f0f&#xff0c;\u529f\u80fd\u4e0e\u00a0.der\u00a0\u53ca\u00a0.cer\u00a0\u8bc1\u4e66\u6587\u4ef6\u76f8\u540c\u3002<\/li>\n<li>.pem\u00a0&#xff1a; \u6b64\u8bc1\u4e66\u6587\u4ef6\u4e00\u822c\u662f\u6587\u672c\u683c\u5f0f&#xff0c;\u53ef\u4ee5\u5b58\u653e\u8bc1\u4e66\u6216\u79c1\u94a5&#xff0c;\u6216\u8005\u4e24\u8005\u90fd\u5305\u542b\u3002\u00a0.pem\u00a0\u6587\u4ef6\u5982\u679c\u53ea\u5305\u542b\u79c1\u94a5&#xff0c;\u4e00\u822c\u7528\u00a0.key\u00a0\u6587\u4ef6\u4ee3\u66ff\u3002<\/li>\n<li>.pfx\u00a0.p12\u00a0&#xff1a; \u6b64\u8bc1\u4e66\u6587\u4ef6\u662f\u4e8c\u8fdb\u5236\u683c\u5f0f&#xff0c;\u540c\u65f6\u5305\u542b\u8bc1\u4e66\u548c\u79c1\u94a5&#xff0c;\u4e14\u4e00\u822c\u6709\u5bc6\u7801\u4fdd\u62a4\u3002<\/li>\n<li>.keystore\u00a0.truststore\u00a0: \u4e24\u8005\u672c\u8d28\u90fd\u662fkeystore&#xff0c;\u90fd\u662f\u50a8\u5b58\u5bc6\u94a5\u7684\u5bb9\u5668&#xff1a;\n<ul>\n<li>\u4e24\u8005\u5b58\u653e\u7684\u5bc6\u94a5\u6240\u6709\u8005\u4e0d\u540c&#xff0c;keystore\u662f\u5b58\u50a8\u81ea\u5df1\u7684\u516c\u94a5\u548c\u79c1\u94a5\u800c&#xff0c;truststore\u662f\u5b58\u50a8\u81ea\u5df1\u4fe1\u4efb\u5bf9\u8c61\u7684\u516c\u94a5\u3002\u7ea6\u5b9a\u901a\u8fc7\u6587\u4ef6\u540d\u79f0\u533a\u5206\u7c7b\u578b\u4ee5\u53ca\u7528\u9014&#xff1b;<\/li>\n<li>truststore\u00a0\u662f\u5fc5\u987b\u7684&#xff0c;\u5982\u679c\u6211\u4eec\u6ca1\u6709\u663e\u5f0f\u7684\u6307\u5b9a&#xff0c;\u90a3\u4e48java\u4f1a\u9ed8\u8ba4\u6307\u5b9a\u4e3a\u00a0$JAVA_HOME\/lib\/security\/cacerts\u00a0\u8fd9\u4e2a\u6587\u4ef6&#xff1b;<\/li>\n<li>java \u5728jdk \u4e2d\u5df2\u7ecf\u9ed8\u8ba4\u5728 $JAVA_HOME\/lib\/security\/cacerts \u8fd9\u4e2a\u6587\u4ef6\u4e2d\u9884\u7f6e\u4e86\u5e38\u7528\u7684\u8bc1\u4e66&#xff1b;<\/li>\n<\/ul>\n<\/li>\n<li>\u4e0d\u540c\u8bed\u8a00\u9700\u8981\u7684\u8bc1\u4e66\u683c\u5f0f\u5e76\u4e0d\u4e00\u81f4&#xff0c;\u6bd4\u5982\u8bf4Java\u91c7\u7528jks&#xff0c;.Net\u91c7\u7528pfx\u548ccer&#xff0c;Php\u5219\u91c7\u7528pem\u548ccer&#xff1b;<\/li>\n<li>\u533a\u522b\u8bc1\u4e66\u7684\u4e0d\u662f\u540e\u7f00\u540d&#xff0c;\u800c\u662f\u6587\u4ef6\u7684\u683c\u5f0f\u548c\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<p id=\"keytool-\u547d\u4ee4\u8be6\u89e3\">keytool \u547d\u4ee4\u8be6\u89e3&#xff1a;<\/p>\n<p id=\"\u5bc6\u94a5\u548c\u8bc1\u4e66\u7ba1\u7406\u5de5\u5177\">\u5bc6\u94a5\u548c\u8bc1\u4e66\u7ba1\u7406\u5de5\u5177<\/p>\n<p>-certreq \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u751f\u6210\u8bc1\u4e66\u8bf7\u6c42 -changealias \u00a0 \u00a0 \u00a0 \u00a0\u66f4\u6539\u6761\u76ee\u7684\u522b\u540d -delete \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5220\u9664\u6761\u76ee -exportcert \u00a0 \u00a0 \u00a0 \u00a0 \u5bfc\u51fa\u8bc1\u4e66&#xff08;\u7b80\u5199 export&#xff09; -genkeypair \u00a0 \u00a0 \u00a0 \u00a0 \u751f\u6210\u5bc6\u94a5\u5bf9&#xff08;\u7b80\u5199 genkey&#xff09; -genseckey \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u751f\u6210\u5bc6\u94a5 -gencert \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u6839\u636e\u8bc1\u4e66\u8bf7\u6c42\u751f\u6210\u8bc1\u4e66 -importcert \u00a0 \u00a0 \u00a0 \u00a0 \u5bfc\u5165\u8bc1\u4e66\u6216\u8bc1\u4e66\u94fe&#xff08;\u7b80\u5199 import&#xff09; -importpass \u00a0 \u00a0 \u00a0 \u00a0 \u5bfc\u5165\u53e3\u4ee4 -importkeystore \u00a0 \u00a0 \u4ece\u5176\u4ed6\u5bc6\u94a5\u5e93\u5bfc\u5165\u4e00\u4e2a\u6216\u6240\u6709\u6761\u76ee -keypasswd \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u66f4\u6539\u6761\u76ee\u7684\u5bc6\u94a5\u53e3\u4ee4 -list \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u5217\u51fa\u5bc6\u94a5\u5e93\u4e2d\u7684\u6761\u76ee -printcert \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u6253\u5370\u8bc1\u4e66\u5185\u5bb9 -printcertreq \u00a0 \u00a0 \u00a0 \u6253\u5370\u8bc1\u4e66\u8bf7\u6c42\u7684\u5185\u5bb9 -printcrl \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u6253\u5370 CRL \u6587\u4ef6\u7684\u5185\u5bb9 -storepasswd \u00a0 \u00a0 \u00a0 \u00a0\u66f4\u6539\u5bc6\u94a5\u5e93\u7684\u5b58\u50a8\u53e3\u4ee4<\/p>\n<ul>\n<li>\u7528\u00a0ketytool &#8211;help\u00a0\u83b7\u53d6\u6240\u6709\u53ef\u7528\u547d\u4ee4<\/li>\n<li>\u4f7f\u7528\u00a0keytool -command_name -help\u00a0\u6765\u83b7\u53d6 command_name \u7684\u7528\u6cd5<\/li>\n<\/ul>\n<p id=\"\u5e38\u7528\u53c2\u6570\">\u5e38\u7528\u53c2\u6570&#xff1a;<\/p>\n<p>-genkey \u00a0 \u00a0 \u00a0 \u00a0 \u4ea7\u751f\u5bc6\u94a5\u5bf9&#xff08;genkeypair \u7b80\u5199&#xff09;&#xff1b;\u8868\u793a\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5bc6\u94a5&#xff1b;alias\u548ckeystore\u7f3a\u7701\u65f6&#xff0c;\u5728\u7528\u6237\u4e3b\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u201d.keystore\u201d\u6587\u4ef6&#xff0c;\u4e14\u522b\u540d\u4e3amykey&#xff0c;\u5305\u542b\u7528\u6237\u7684\u516c\u94a5\u3001\u79c1\u94a5\u8bc1\u4e66 -alias \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u4ea7\u751f\u8bc1\u4e66\u522b\u540d&#xff0c;\u548ckeystore\u5173\u8054\u7684\u552f\u4e00\u522b\u540d&#xff0c;\u4e0d\u533a\u5206\u5927\u5c0f\u5199&#xff08;\u9ed8\u8ba4 &#096;mykey&#096;&#xff09; -keystore \u00a0 \u00a0 \u00a0 \u6307\u5b9a\u5bc6\u94a5\u5e93\u6587\u4ef6\u7684\u540d\u79f0&#xff08;\u9ed8\u8ba4\u5728\u7528\u6237\u4e3b\u76ee\u5f55\u521b\u5efa\u8bc1\u4e66\u5e93&#xff09; -keyalg \u00a0 \u00a0 \u00a0 \u00a0 \u6307\u5b9a\u5bc6\u94a5\u7684\u7b97\u6cd5&#xff08;\u53ef\u9009\u62e9\u5bc6\u94a5\u7b97\u6cd5&#xff1a;&#096;RSA&#096;\u3001&#096;DSA&#096;\u3001&#096;EC&#096;&#xff0c;\u9ed8\u8ba4&#096;DSA&#096;&#xff09; -keysize \u00a0 \u00a0 \u00a0 \u00a0\u6307\u5b9a\u5bc6\u94a5\u957f\u5ea6&#xff08;\u4e0ekeyalg\u9ed8\u8ba4\u5bf9\u5e94\u5173\u7cfb&#xff1a;&#096;RSA&#061;2048&#096;\u3001&#096;DSA&#061;2048&#096;\u3001&#096;EC&#061;256&#096;&#xff09; -sigalg \u00a0 \u00a0 \u00a0 \u00a0 \u6307\u5b9a\u7b7e\u540d\u7b97\u6cd5&#xff08;MD5\u548c SHA1\u7684\u7b7e\u540d\u7b97\u6cd5\u5df2\u7ecf\u4e0d\u5b89\u5168&#xff09; -validity \u00a0 \u00a0 \u00a0 \u6307\u5b9a\u8bc1\u4e66\u6709\u6548\u671f\u5929\u6570&#xff08;\u9ed8\u8ba4 &#096;90&#096;\u5929&#xff09; -storepass \u00a0 \u00a0 \u00a0\u6307\u5b9a\u5bc6\u94a5\u5e93\u53e3\u4ee4&#xff0c;\u63a8\u8350\u4e0ekeypass\u4e00\u81f4&#xff08;\u83b7\u53d6keystore\u4fe1\u606f\u6240\u9700\u7684\u5bc6\u7801&#xff09; -storetype \u00a0 \u00a0 \u00a0\u6307\u5b9a\u5bc6\u94a5\u5e93\u7684\u7c7b\u578b&#xff0c;\u53ef\u7528\u7c7b\u578b\u4e3a&#xff1a;JKS\u3001PKCS12\u7b49\u3002&#xff08;jdk9\u4ee5\u524d&#xff0c;\u9ed8\u8ba4\u4e3aJKS\u3002\u81eajdk9\u5f00\u59cb&#xff0c;\u9ed8\u8ba4\u4e3aPKCS12&#xff09; -keypass \u00a0 \u00a0 \u00a0 \u00a0\u6307\u5b9a\u522b\u540d\u6761\u76ee\u53e3\u4ee4&#xff08;\u79c1\u94a5\u7684\u5bc6\u7801&#xff09; -dname \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u6307\u5b9a\u8bc1\u4e66\u53d1\u884c\u8005\u4fe1\u606f&#xff08;\u5176\u4e2d CN \u8981\u548c\u670d\u52a1\u5668\u7684 &#096;\u57df\u540d&#096; \u6216 &#096;IP&#096; \u76f8\u540c&#xff0c;\u672c\u5730\u6d4b\u8bd5\u5219\u4f7f\u7528localhost&#xff0c;\u5176\u4ed6\u7684\u53ef\u4ee5\u4e0d\u586b&#xff09; -list \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u663e\u793a\u5bc6\u94a5\u5e93\u4e2d\u7684\u8bc1\u4e66\u4fe1\u606f -v \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u8be6\u7ec6\u8f93\u51fa&#xff0c;\u663e\u793a\u5bc6\u94a5\u5e93\u4e2d\u7684\u8bc1\u4e66\u8be6\u7ec6\u4fe1\u606f -file \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u6307\u5b9a\u5bfc\u51fa\u6216\u5bfc\u51fa\u7684\u6587\u4ef6\u540d -export \u00a0 \u00a0 \u00a0 \u00a0 \u5c06\u522b\u540d\u6307\u5b9a\u7684\u8bc1\u4e66\u5bfc\u51fa\u5230\u6587\u4ef6&#xff08;exportcert \u7b80\u5199&#xff09; -import \u00a0 \u00a0 \u00a0 \u00a0 \u5c06\u5df2\u7b7e\u540d\u6570\u5b57\u8bc1\u4e66\u5bfc\u5165\u5bc6\u94a5\u5e93&#xff08;importcert \u7b80\u5199&#xff09; -printcert \u00a0 \u00a0 \u00a0\u67e5\u770b\u5bfc\u51fa\u7684\u8bc1\u4e66\u4fe1\u606f -delete \u00a0 \u00a0 \u00a0 \u00a0 \u5220\u9664\u5bc6\u94a5\u5e93\u4e2d\u67d0\u6761\u76ee -keypasswd \u00a0 \u00a0 \u00a0\u4fee\u6539\u5bc6\u94a5\u5e93\u4e2d\u6307\u5b9a\u6761\u76ee\u53e3\u4ee4 -storepasswd \u00a0 \u00a0\u4fee\u6539keystore\u53e3\u4ee4 -ext \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0X.509 \u6269\u5c55<\/p>\n<p>\u00a0\u6269\u5c55&#xff1a;<\/p>\n<ul>\n<li>\u6240\u6709\u5bc6\u7801\u957f\u5ea6\u5fc5\u987b\u5927\u4e8e\u6216\u7b49\u4e8e 6 \u4f4d<\/li>\n<li>keyalg \u6307\u5b9a\u52a0\u5bc6\u7b97\u6cd5&#xff1b;\u53ef\u4ee5\u9009\u62e9\u7684\u5bc6\u94a5\u7b97\u6cd5\u6709&#xff1a;RSA\u3001DSA&#xff08;\u9ed8\u8ba4&#xff09;\u3001EC\u3002<\/li>\n<li>sigalg \u6307\u5b9a\u7b7e\u540d\u7b97\u6cd5&#xff08;MD5\u548c SHA1\u7684\u7b7e\u540d\u7b97\u6cd5\u5df2\u7ecf\u4e0d\u5b89\u5168&#xff09;:\n<ul>\n<li>keyalg &#061; RSA \u65f6&#xff0c;\u7b7e\u540d\u7b97\u6cd5\u6709&#xff1a;MD5withRSA\u3001SHA1withRSA\u3001SHA256withRSA&#xff08;\u9ed8\u8ba4&#xff09;\u3001SHA384withRSA\u3001SHA512withRSA<\/li>\n<li>keyalg &#061; DSA \u65f6&#xff0c;\u7b7e\u540d\u7b97\u6cd5\u6709&#xff1a;SHA1withDSA\u3001SHA256withDSA&#xff08;\u9ed8\u8ba4&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>dname \u8868\u660e\u4e86\u5bc6\u94a5\u7684\u53d1\u884c\u8005\u8eab\u4efd&#xff08;Distinguished Names&#xff09;\n<ul>\n<li>CN &#061; \u57df\u540d\u6216IP&#xff08;Common Name&#xff09; \u6ce8&#xff1a;\u751f\u6210\u670d\u52a1\u5668\u8bc1\u4e66\u65f6&#xff0c;CN\u8981\u548c\u670d\u52a1\u5668\u7684\u00a0\u57df\u540d\u00a0\u6216\u00a0IP\u00a0\u76f8\u540c&#xff0c;\u672c\u5730\u6d4b\u8bd5\u5219\u4f7f\u7528localhost&#xff0c;\u5176\u4ed6\u7684\u53ef\u4ee5\u4e0d\u586b&#xff08;\u5ba2\u6237\u7aef\u8bc1\u4e66\u65e0\u8981\u6c42&#xff09;<\/li>\n<li>OU &#061; \u7ec4\u7ec7\u5355\u4f4d\u540d\u79f0&#xff08;Organization Unit&#xff09;<\/li>\n<li>O &#061; \u7ec4\u7ec7\u540d\u79f0&#xff08;Organization Name&#xff09;<\/li>\n<li>L &#061; \u57ce\u5e02\u6216\u533a\u57df\u540d\u79f0&#xff08;Locality Name&#xff09;<\/li>\n<li>ST &#061; \u5dde\u6216\u7701\u4efd\u540d\u79f0&#xff08;State Name&#xff09;<\/li>\n<li>C &#061; \u56fd\u5bb6\u7684\u7b80\u5199&#xff08;Country&#xff0c;CN \u4ee3\u8868\u4e2d\u56fd&#xff09;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u8bc1\u4e66\u64cd\u4f5c&#xff1a;<\/p>\n<p>\u00a0\u5efa\u79d8\u94a5\u5e93(keystore),\u79d8\u94a5\u5e93\u662f\u5b58\u50a8\u4e00\u4e2a\u6216\u591a\u4e2a\u5bc6\u94a5\u6761\u76ee\u7684\u6587\u4ef6&#xff0c;\u6bcf\u4e2a\u5bc6\u94a5\u6761\u76ee\u5e94\u8be5\u4ee5\u4e00\u4e2a\u522b\u540d\u6807\u8bc6&#xff0c;\u5b83\u5305\u542b\u5bc6\u94a5\u548c\u8bc1\u4e66\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n<p>keytool -genkey<br \/>\n        -alias &lt;alias&gt;<br \/>\n        -keyalg RSA<br \/>\n        [-sigalg SHA256withRSA]<br \/>\n        [-keysize 2048]<br \/>\n        -keypass &lt;keypasswd&gt;<br \/>\n        -keystore &lt;keystore_file&gt;<br \/>\n        -storetype JKS|PKCS12<br \/>\n        -storepass &lt;keystore_passwd&gt;<br \/>\n        -validity 3650<br \/>\n        -dname &#034;CN&#061;github.com,OU&#061;github.com,Inc.,O&#061;Github, Inc.,L&#061;San Francisco,ST&#061;California,C&#061;US&#034;<br \/>\n        -ext SAN&#061;dns:github.com,dns:www.github.com,ip:127.0.0.1  <\/p>\n<p>\u00a0-genkey \u00a0 \u00a0 \u4ea7\u751f\u5bc6\u94a5\u5bf9&#xff08;genkeypair \u7b80\u5199&#xff09; -alias \u00a0 \u00a0 \u00a0\u8bc1\u4e66\u522b\u540d&#xff1b;\u548ckeystore\u5173\u8054\u7684\u552f\u4e00\u522b\u540d&#xff0c;\u8fd9\u4e2aalias\u901a\u5e38\u4e0d\u533a\u5206\u5927\u5c0f\u5199&#xff08;\u9ed8\u8ba4&#096;mykey&#096;&#xff09; -keyalg \u00a0 \u00a0 \u6307\u5b9a\u52a0\u5bc6\u7b97\u6cd5&#xff0c;RSA&#xff1a;\u975e\u5bf9\u79f0\u52a0\u5bc6&#xff08;\u9ed8\u8ba4&#096;DSA&#096;&#xff09; -sigalg \u00a0 \u00a0 \u6307\u5b9a\u7b7e\u540d\u7b97\u6cd5&#xff0c;\u53ef\u9009; -keysize \u00a0 \u00a0\u6307\u5b9a\u5bc6\u94a5\u957f\u5ea6&#xff0c;\u53ef\u9009; -keypass \u00a0 \u00a0\u6307\u5b9a\u522b\u540d\u6761\u76ee\u53e3\u4ee4&#xff08;\u79c1\u94a5\u7684\u5bc6\u7801&#xff09; -storetype \u00a0\u751f\u6210\u8bc1\u4e66\u7c7b\u578b&#xff0c;\u53ef\u7528\u7684\u8bc1\u4e66\u5e93\u7c7b\u578b\u4e3a&#xff1a;JKS\u3001PKCS12\u7b49\u3002&#xff08;jdk9\u4ee5\u524d&#xff0c;\u9ed8\u8ba4\u4e3aJKS\u3002\u81eajdk9\u5f00\u59cb&#xff0c;\u9ed8\u8ba4\u4e3aPKCS12&#xff09; -keystore \u00a0 \u6307\u5b9a\u4ea7\u751f\u7684\u5bc6\u94a5\u5e93\u7684\u4f4d\u7f6e&#xff1b; -storepass \u00a0\u6307\u5b9a\u5bc6\u94a5\u5e93\u7684\u5b58\u53d6\u53e3\u4ee4&#xff0c;\u63a8\u8350\u4e0ekeypass\u4e00\u81f4 -validity \u00a0 \u8bc1\u4e66\u6709\u6548\u671f\u5929\u6570&#xff1b;&#xff08;\u9ed8\u8ba4\u4e3a 90\u5929&#xff09; -dname \u00a0 \u00a0 \u00a0\u8868\u660e\u4e86\u5bc6\u94a5\u7684\u53d1\u884c\u8005\u8eab\u4efd&#xff08;Distinguished Names&#xff09;\u751f\u6210\u8bc1\u4e66\u65f6&#xff0c;\u5176\u4e2d CN \u8981\u548c\u670d\u52a1\u5668\u7684 &#096;\u57df\u540d&#096; \u6216 &#096;IP&#096; \u76f8\u540c&#xff0c;\u672c\u5730\u6d4b\u8bd5\u5219\u4f7f\u7528localhost&#xff0c;\u5176\u4ed6\u7684\u53ef\u4ee5\u4e0d\u586b -ext \u00a0 \u00a0 \u00a0 \u00a0X.509 \u6269\u5c55<\/p>\n<p>\u00a0\u6269\u5c55&#xff1a;<\/p>\n<ul>\n<li>\u6b64\u5904\u9700\u8981\u6ce8\u610f&#xff1a;MD5 \u548cSHA1 \u7684\u7b7e\u540d\u7b97\u6cd5\u5df2\u7ecf\u4e0d\u5b89\u5168&#xff1b;<\/li>\n<li>\u5982\u679cTomcat\u6240\u5728\u670d\u52a1\u5668\u7684\u57df\u540d\u4e0d\u662f \u201clocalhost\u201d \u65f6&#xff0c;\u6d4f\u89c8\u5668\u4f1a\u5f39\u51fa\u8b66\u544a\u7a97\u53e3&#xff0c;\u63d0\u793a\u7528\u6237\u8bc1\u4e66\u4e0e\u6240\u5728\u57df\u4e0d\u5339\u914d\u3002\n<ul>\n<li>\u670d\u52a1\u5668\u8bc1\u4e66 dname\u7684 CN\u5e94\u6539\u4e3a\u5bf9\u5e94\u7684\u57df\u540d&#xff0c;\u5982 \u201cwww.github.com\u201d&#xff1b;\u5728\u672c\u5730\u505a\u5f00\u53d1\u6d4b\u8bd5\u65f6&#xff0c;CN\u5e94\u586b\u5165 \u201clocalhost\u201d&#xff1b;<\/li>\n<li>\u5ba2\u6237\u7aef\u8bc1\u4e66 dname\u7684 CN\u53ef\u4ee5\u662f\u4efb\u610f\u503c&#xff0c;\u4e14\u4e0d\u7528\u4f7f\u7528 -ext\u6269\u5c55\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u5bfc\u51fa\u8bc1\u4e66\u4fe1\u606f&#xff1a;<\/p>\n<p>\u6b64\u8bc1\u4e66\u6587\u4ef6\u4e0d\u5305\u542b\u79c1\u94a5&#xff1b;\u5206\u4e3a\u81ea\u7b7e\u540d\u8bc1\u4e66\u548c\u8ba4\u8bc1\u8bc1\u4e66&#xff0c;\u4e0b\u9762\u5206\u522b\u4ecb\u7ecd\u4e86\u4e24\u4e2d\u8bc1\u4e66\u7684\u751f\u6210\u65b9\u5f0f<\/p>\n<ul>\n<li>\u8ba4\u8bc1\u8bc1\u4e66\u4e0e\u5bfc\u51fa\u7684\u670d\u52a1\u5668\u81ea\u7b7e\u540d\u8bc1\u4e66\u4f5c\u7528\u4e00\u81f4&#xff0c;\u4f7f\u7528\u65f6\u53d6\u5176\u4e2d\u4e00\u79cd\u8bc1\u4e66\u5373\u53ef\u3002\u4e24\u8005\u4e3b\u8981\u533a\u522b\u4e3a\u662f\u5426\u7ecf\u8bc1\u4e66\u673a\u6784\u8ba4\u8bc1&#xff1b;<\/li>\n<li>\u4f7f\u7528\u81ea\u7b7e\u540d\u8bc1\u4e66\u5219\u65e0\u9700\u751f\u6210\u8bc1\u4e66\u7b7e\u540d\u8bf7\u6c42(CSR)&#xff0c;\u4f7f\u7528\u8ba4\u8bc1\u8bc1\u4e66\u5219\u65e0\u9700\u5bfc\u51fa\u670d\u52a1\u5668\u81ea\u7b7e\u540d\u8bc1\u4e66&#xff1b;<\/li>\n<li>\u5927\u90e8\u5206\u8ba4\u8bc1\u8bc1\u4e66\u90fd\u662f\u6536\u8d39\u7684&#xff1b;<\/li>\n<\/ul>\n<p id=\"\u5bfc\u51fa\u81ea\u7b7e\u540d\u8bc1\u4e66\">\u5bfc\u51fa\u81ea\u7b7e\u540d\u8bc1\u4e66&#xff1a;<\/p>\n<p>\u81ea\u7b7e\u540d\u8bc1\u4e66\u6ca1\u6709\u7ecf\u8fc7\u8bc1\u4e66\u8ba4\u8bc1\u673a\u6784\u8fdb\u884c\u8ba4\u8bc1&#xff0c;\u4f46\u5e76\u4e0d\u5f71\u54cd\u4f7f\u7528&#xff0c;\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u76f8\u5e94\u7684\u547d\u4ee4\u5bf9\u8bc1\u4e66\u8fdb\u884c\u5bfc\u51fa;<\/p>\n<p>keytool -export<br \/>\n        -alias &lt;alias&gt;<br \/>\n        -keystore &lt;keystore_file&gt;<br \/>\n        -storepass &lt;keystore_passwd&gt;<br \/>\n        -file &lt;file_cer&gt;<br \/>\n        [-rfc]  <\/p>\n<p>-export \u00a0 \u00a0 \u6267\u884c\u8bc1\u4e66\u5bfc\u51fa\u64cd\u4f5c&#xff08;exportcert \u7b80\u5199&#xff09; -alias \u00a0 \u00a0 \u00a0\u5bc6\u94a5\u5e93\u4e2d\u7684\u8bc1\u4e66\u6761\u76ee\u522b\u540d&#xff08;jks\u91cc\u53ef\u4ee5\u5b58\u50a8\u591a\u5bf9\u516c\u79c1\u94a5\u6587\u4ef6&#xff0c;\u901a\u8fc7\u522b\u540d\u6307\u5b9a\u5bfc\u51fa\u7684\u516c\u94a5\u8bc1\u4e66&#xff09; -keystore \u00a0 \u6307\u5b9a\u5bc6\u94a5\u5e93\u6587\u4ef6 -storepass \u00a0\u5bc6\u94a5\u5e93\u53e3\u4ee4 -file \u00a0 \u00a0 \u00a0 \u5bfc\u51fa\u6587\u4ef6\u7684\u8f93\u51fa\u8def\u5f84 -rfc \u00a0 \u00a0 \u00a0 \u00a0\u4f7f\u7528Base64\u683c\u5f0f\u8f93\u51fa&#xff08;\u8f93\u51fapem\u7f16\u7801\u683c\u5f0f\u7684\u8bc1\u4e66&#xff0c;\u6587\u672c\u683c\u5f0f&#xff09;&#xff0c;\u4e0d\u9002\u7528\u5219\u5bfc\u51fa\u7684\u8bc1\u4e66\u4e3aDER\u7f16\u7801\u683c\u5f0f<\/p>\n<p>\u00a0\u83b7\u53d6\u8ba4\u8bc1\u8bc1\u4e66&#xff08;\u751f\u6210\u8bc1\u4e66\u7b7e\u540d\u8bf7\u6c42&#xff09;&#xff1a;<\/p>\n<p>\u5982\u679c\u60f3\u5f97\u5230\u8bc1\u4e66\u8ba4\u8bc1\u673a\u6784\u7684\u8ba4\u8bc1&#xff0c;\u5219\u4e0d\u4f7f\u7528\u4e0a\u8ff0\u7684\u81ea\u7b7e\u540d\u8bc1\u4e66&#xff0c;\u9700\u8981\u4f7f\u7528\u6b65\u9aa4\u5bfc\u51fa\u6570\u5b57\u8bc1\u4e66\u5e76\u7b7e\u53d1\u7533\u8bf7&#xff08;Cerificate Signing Request&#xff09;&#xff0c;\u7ecf\u8bc1\u4e66\u8ba4\u8bc1\u673a\u6784\u8ba4\u8bc1\u5e76\u9881\u53d1\u540e&#xff0c;\u518d\u5c06\u8ba4\u8bc1\u540e\u7684\u8bc1\u4e66\u5bfc\u5165\u672c\u5730\u5bc6\u94a5\u5e93\u4e0e\u4fe1\u4efb\u5e93\u3002<\/p>\n<p>keytool -certreq<br \/>\n        -alias &lt;alias&gt;<br \/>\n        -keystore &lt;keystore_file&gt;<br \/>\n        -storepass &lt;keystore_passwd&gt;<br \/>\n        -file &lt;file_csr&gt;  <\/p>\n<p>\u00a0-certreq \u00a0 \u00a0\u6267\u884c\u8bc1\u4e66\u7b7e\u53d1\u7533\u8bf7\u5bfc\u51fa\u64cd\u4f5c -alias \u00a0 \u00a0 \u00a0\u5bc6\u94a5\u5e93\u4e2d\u7684\u8bc1\u4e66\u6761\u76ee\u522b\u540d -keystore \u00a0 \u5bc6\u94a5\u5e93\u6587\u4ef6\u540d\u79f0 -storepass \u00a0\u5bc6\u94a5\u5e93\u53e3\u4ee4 -file \u00a0 \u00a0 \u00a0 \u8f93\u51fa\u7684csr\u6587\u4ef6\u8def\u5f84<\/p>\n<p>\u5bfc\u5165\u8bc1\u4e66\u5e93\u00a0&#xff1a;<\/p>\n<p>\u53cc\u5411\u8ba4\u8bc1&#xff1a; \u5c06\u5404\u81ea\u7684\u516c\u94a5\u8bc1\u4e66\u5206\u522b\u5bfc\u5165\u5bf9\u65b9\u7684\u4fe1\u4efb\u5e93&#xff0c;\u4f7f\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u7aef\u76f8\u4e92\u4fe1\u4efb<\/p>\n<p>keytool -import<br \/>\n        [-trustcacerts]<br \/>\n        -alias &lt;alias_cer&gt;<br \/>\n        -keystore &lt;keystore_file&gt;<br \/>\n        -storepass &lt;keystore_passwd&gt;<br \/>\n        -file &lt;file_cer&gt;  <\/p>\n<p>-import \u00a0 \u00a0 \u6267\u884c\u8bc1\u4e66\u5bfc\u5165\u64cd\u4f5c&#xff08;importcert \u7b80\u5199&#xff09; -alias \u00a0 \u00a0 \u00a0\u6307\u5b9a\u5bfc\u5165\u5bc6\u94a5\u5e93\u4e2d\u7684\u8bc1\u4e66\u522b\u540d&#xff08;\u6307\u5b9a\u7684\u6761\u76ee\u522b\u540d\u4e0d\u80fd\u4e0e\u5bc6\u94a5\u5e93\u4e2d\u5df2\u5b58\u5728\u7684\u6761\u76ee\u522b\u540d\u91cd\u590d&#xff08;\u5bfc\u5165\u7b7e\u53d1\u8bc1\u4e66\u9664\u5916&#xff09;&#xff09; -trustcacerts \u00a0 \u00a0\u5c06\u8bc1\u4e66\u5bfc\u5165\u4fe1\u4efb\u5e93&#xff08;\u4fe1\u4efb\u6765\u81ea cacerts \u7684\u8bc1\u4e66&#xff09; -keystore \u00a0 \u5bc6\u94a5\u5e93\u540d\u79f0 -storepass \u00a0\u5bc6\u94a5\u5e93\u53e3\u4ee4 -file \u00a0 \u00a0 \u00a0 \u8f93\u5165\u6587\u4ef6\u540d<\/p>\n<p><span style=\"color:#fe2c24\">Tips<\/span>&#xff1a; \u6b64\u6b65\u9aa4\u4f1a\u751f\u6210\u4fe1\u4efb\u8bc1\u4e66 truststore.jks\u6587\u4ef6&#xff0c; \u6587\u4ef6\u5b58\u653e\u9700\u8981\u4fe1\u4efb\u7684\u516c\u94a5\u8bc1\u4e66&#xff0c;\u5982\u5ba2\u6237\u7aef\u8bc1\u4e66&#xff08;\u4e5f\u53ef\u4ee5\u5c06 keystore\u503c\u6539\u4e3a\u670d\u52a1\u5668\u5bc6\u94a5\u5e93&#xff0c;\u5982tomcat.jks\u3002\u6b64\u65f6\u7684tomcat.jks \u5c31\u540c\u65f6\u662f\u670d\u52a1\u7684\u5bc6\u94a5\u5e93\u548c\u4fe1\u4efb\u5e93&#xff09;<\/p>\n<p id=\"\u5b89\u88c5\u670d\u52a1\u5668\u8bc1\u4e66\u5c06\u670d\u52a1\u5668\u516c\u94a5\u8bc1\u4e66\u5bfc\u5165\u5ba2\u6237\u7aef\">\u5b89\u88c5\u670d\u52a1\u5668\u8bc1\u4e66&#xff08;\u5c06\u670d\u52a1\u5668\u516c\u94a5\u8bc1\u4e66\u5bfc\u5165\u5ba2\u6237\u7aef&#xff09;&#xff1a;<\/p>\n<p>\u53cc\u5411\u8ba4\u8bc1&#xff1a; \u5ba2\u6237\u7aef\u4fe1\u4efb\u670d\u52a1\u7aef&#xff1a; \u5728\u5ba2\u6237\u673a\u5668\u4e0a\u53cc\u51fb\u8bc1\u4e66\u6587\u4ef6\u5b8c\u6210\u5bfc\u5165\u64cd\u4f5c&#xff08;window\u4e2d\u5bfc\u5165&#xff09;<\/p>\n<li>\n<p>\u5b89\u88c5\u516c\u94a5\u8bc1\u4e66<\/p>\n<ul>\n<li>\u5c06\u670d\u52a1\u5668\u516c\u94a5\u8bc1\u4e66&#xff08;cer | crt\u7b49\u683c\u5f0f\u6587\u4ef6&#xff09;\u53d1\u5f80\u5ba2\u6237\u7aef\u673a\u5668\n<ul>\n<li>&#8211;&gt; \u53cc\u51fb\u8be5\u8bc1\u4e66\u8fdb\u5165\u201c\u8bc1\u4e66\u4fe1\u606f\u201d\u9875\n<ul>\n<li>&#8211;&gt; \u70b9\u51fb\u3010\u5b89\u88c5\u8bc1\u4e66\u3011\u8fdb\u5165\u201c\u8bc1\u4e66\u5bfc\u5165\u5411\u5bfc\u201d\u9996\u9875\n<ul>\n<li>&#8211;&gt; \u70b9\u51fb\u3010\u4e0b\u4e00\u6b65\u3011\n<ul>\n<li>&#8211;&gt; \u9009\u4e2d\u3010\u5c06\u6240\u6709\u7684\u8bc1\u4e66\u90fd\u653e\u5165\u4e0b\u5217\u5b58\u50a8\u3011&#xff0c;\u7136\u540e\u5355\u51fb\u3010\u6d4f\u89c8\u3011\n<ul>\n<li>&#8211;&gt; \u9009\u62e9\u3010\u53d7\u4fe1\u4efb\u7684\u6839\u8bc1\u4e66\u9881\u53d1\u673a\u6784\u3011\u5e76\u70b9\u51fb\u3010\u786e\u5b9a\u3011\n<ul>\n<li>&#8211;&gt; \u70b9\u51fb\u3010\u4e0b\u4e00\u6b65\u3011\n<ul>\n<li>&#8211;&gt; \u70b9\u51fb\u3010\u5b8c\u6210\u3011\u3002\u7136\u540e\u5f39\u51fa\u63d0\u793a\u3010\u5bfc\u5165\u5b8c\u6210\u3011\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5b89\u88c5\u5ba2\u6237\u7aef\u8bc1\u4e66<\/p>\n<ul>\n<li>\u5c06\u5ba2\u6237\u7aef\u8bc1\u4e66&#xff08;jsk | p12\u7b49\u683c\u5f0f\u6587\u4ef6&#xff09;\u53d1\u5f80\u5ba2\u6237\u7aef\u673a\u5668\n<ul>\n<li>&#8211;&gt; \u53cc\u51fb\u8be5\u8bc1\u4e66\u8fdb\u5165\u201c\u8bc1\u4e66\u5bfc\u5165\u5411\u5bfc\u201d\u9996\u9875\n<ul>\n<li>&#8211;&gt; \u70b9\u51fb\u3010\u4e0b\u4e00\u6b65\u3011\n<ul>\n<li>&#8211;&gt; \u70b9\u51fb\u3010\u4e0b\u4e00\u6b65\u3011\n<ul>\n<li>&#8211;&gt; \u8f93\u5165\u8bc1\u4e66\u5bc6\u7801&#xff08;keystore\u5bc6\u7801&#xff09;\u5e76\u70b9\u51fb\u3010\u4e0b\u4e00\u6b65\u3011\n<ul>\n<li>&#8211;&gt; \u70b9\u51fb\u3010\u4e0b\u4e00\u6b65\u3011&#xff08;\u8fd9\u91cc\u4e5f\u53ef\u4ee5\u81ea\u5df1\u6307\u5b9a\u8bc1\u4e66\u50a8\u5b58&#xff09;\n<ul>\n<li>&#8211;&gt; \u70b9\u51fb\u3010\u5b8c\u6210\u3011\u3002\u7136\u540e\u5f39\u51fa\u63d0\u793a\u3010\u5bfc\u5165\u5b8c\u6210\u3011\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<p>\u00a0<\/p>\n<p>\u00a0\u67e5\u770b\u8bc1\u4e66&#xff1a;<\/p>\n<p># \u67e5\u770b\u5355\u4e2a\u8bc1\u4e66&#xff08;cer | crt&#xff09;<br \/>\nkeytool -printcert -file &lt;cert_file&gt; [-v|-rfc]<\/p>\n<p># \u67e5\u770b\u5bc6\u94a5\u5e93\u4e2d\u7684\u8bc1\u4e66\u6761\u76ee<br \/>\nkeytool -list [-alias &lt;alias_name&gt;] -keystore &lt;keystore_file&gt; -storepass &lt;keystore_passwd&gt; [-v|-rfc]<\/p>\n<p># \u67e5\u770b\u751f\u6210\u7684CSR\u8bc1\u4e66\u8bf7\u6c42<br \/>\nkeytool -printcertreq -file &lt;certreq_file&gt;      <\/p>\n<p>-alias \u00a0 \u00a0 \u00a0\u5bc6\u94a5\u5e93\u4e2d\u7684\u8bc1\u4e66\u6761\u76ee\u522b\u540d&#xff1b; -keystore \u00a0 \u6307\u5b9a\u5bc6\u94a5\u5e93\u6587\u4ef6&#xff1b; -storepass \u00a0\u5bc6\u94a5\u5e93\u53e3\u4ee4&#xff1b; -printcert \u00a0\u6267\u884c\u8bc1\u4e66\u6253\u5370\u547d\u4ee4&#xff1b; -list \u00a0 \u00a0 \u00a0 \u7f3a\u7701\u60c5\u51b5\u4e0b&#xff0c;\u547d\u4ee4\u6253\u5370\u8bc1\u4e66\u7684 MD5 \u6307\u7eb9\u3002 \u00a0 \u00a0 \u800c\u5982\u679c\u6307\u5b9a\u4e86 -v \u9009\u9879&#xff0c;\u5c06\u4ee5\u53ef\u8bfb\u683c\u5f0f\u6253\u5370\u8bc1\u4e66&#xff0c; \u00a0 \u00a0 \u5982\u679c\u6307\u5b9a\u4e86 -rfc \u9009\u9879&#xff0c;\u5c06\u4ee5\u53ef\u6253\u5370\u7684\u7f16\u7801\u683c\u5f0f\u8f93\u51fa\u8bc1\u4e66\u3002<\/p>\n<p>\u5176\u4ed6\u547d\u4ee4&#xff1a;<\/p>\n<p># \u5220\u9664keystore\u91cc\u9762\u6307\u5b9a\u8bc1\u4e66\u6761\u76ee<br \/>\nkeytool -delete -alias &lt;alias&gt; -keystore &lt;keystore_file&gt; -storepass &lt;keystore_passwd&gt;<\/p>\n<p># \u4fee\u6539\u6761\u76ee\u522b\u540d<br \/>\nkeytool -changealias -keystore &lt;keystore_file&gt; -alias &lt;old_alias&gt; -destalias &lt;new_alias&gt;<\/p>\n<p># \u4fee\u6539\u6761\u76ee\u5bc6\u7801<br \/>\nkeytool -keypasswd -alias &lt;alias&gt; -keypass &lt;old_keypasswd&gt; -new &lt;new_keypasswd&gt; -keystore &lt;keystore_file&gt; -storepass &lt;keystore_passwd&gt;<\/p>\n<p># \u4fee\u6539keysore\u5bc6\u7801<br \/>\nkeytool -storepasswd -new &lt;new_storepasswd&gt; -keystore &lt;keystore_file&gt; -storepass &lt;old_storepasswd&gt;<\/p>\n<p># \u5217\u51fa\u4fe1\u4efb\u7684CA\u8bc1\u4e66&#xff08;\u67e5\u770b JVM\u7684\u4fe1\u4efb\u5e93\u4e2d\u7684\u8bc1\u4e66&#xff0c;storepass \u9ed8\u8ba4\u4e3achangeit&#xff09;<br \/>\n## \u8be5\u8bc1\u4e66\u6587\u4ef6\u5b58\u5728\u4e8eJAVA_HOME\\\\jre\\\\lib\\\\security\u76ee\u5f55\u4e0b&#xff0c;\u662fJava\u7cfb\u7edf\u7684CA\u8bc1\u4e66\u4ed3\u5e93&#xff0c;\u53ef\u4ee5\u7528 &#039;alias&#039; \u6765\u67e5\u770b\u8bc1\u4e66\u662f\u5426\u771f\u7684\u5bfc\u5165\u5230JVM\u4e2d<br \/>\nkeytool -list -v [-alias clientCer] -keystore $JAVA_HOME\/jre\/lib\/security\/cacerts -storepass changeit<\/p>\n<p># \u5bfc\u5165\u65b0\u7684CA\u5230\u4fe1\u4efb\u8bc1\u4e66&#xff0c;\u5bfc\u5165\u5230 JRE\u7684\u4fe1\u4efb\u8bc1\u4e66\u5e93<br \/>\n## \u5e38\u51fa\u73b0\u7684\u5f02\u5e38&#xff1a;\u201c\u672a\u627e\u5230\u53ef\u4fe1\u4efb\u7684\u8bc1\u4e66\u201d  &#8212; \u4e3b\u8981\u539f\u56e0\u4e3a\u5728\u5ba2\u6237\u7aef\u672a\u5c06\u670d\u52a1\u5668\u4e0b\u53d1\u7684\u8bc1\u4e66\u5bfc\u5165\u5230JVM\u4e2d\u3002<br \/>\nkeytool -import -trustcacerts -alias clientCer -keystore $JAVA_HOME\/jre\/lib\/security\/cacerts -storepass changeit -file ~\/ssl\/client.cer <\/p>\n<p>\u00a0\u4e3e\u4f8b&#xff1a;<\/p>\n<p id=\"ssl\u5355\u5411\u8bc1\u4e66\u8ba4\u8bc1\u914d\u7f6e\">SSL\u5355\u5411\u8bc1\u4e66\u8ba4\u8bc1\u914d\u7f6e&#xff1a;<\/p>\n<li>\n<p>\u521b\u5efa\u670d\u52a1\u5668\u8bc1\u4e66<\/p>\n<\/li>\n<li>\n<p>\u5bfc\u51fa\u670d\u52a1\u5668\u516c\u94a5\u8bc1\u4e66<\/p>\n<\/li>\n<li>\n<p>\u5c06\u670d\u52a1\u5668\u516c\u94a5\u8bc1\u4e66\u5bfc\u5165\u5ba2\u6237\u7aef&#xff08;\u5ba2\u6237\u7aef\u4fe1\u4efb\u670d\u52a1\u5668&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e Tomcat\/conf\/server.xml&#xff0c;\u627e\u5230\u5982\u4e0b\u539f\u6ce8\u91ca\u5185\u5bb9&#xff0c;\u5e76\u4fee\u6539\u5982\u4e0b&#xff1a;<\/p>\n<p> &lt;Connector port&#061;&#034;8443&#034; protocol&#061;&#034;HTTP\/1.1&#034; SSLEnabled&#061;&#034;true&#034;<br \/>\n    maxThreads&#061;&#034;150&#034; scheme&#061;&#034;https&#034; secure&#061;&#034;true&#034;<br \/>\n    clientAuth&#061;&#034;false&#034; sslProtocol&#061;&#034;TLS&#034;<br \/>\n    keystoreFile&#061;&#034;~\/ssl\/tomcat.jks&#034; keystorePass&#061;&#034;123456&#034;<br \/>\n\/&gt; <\/p>\n<p>Keytool \u914d\u7f6eTomcat\u7684 HTTPS\u5355\u5411\u8ba4\u8bc1:Keytool \u914d\u7f6eTomcat\u7684 HTTPS\u5355\u5411\u8ba4\u8bc1 &#8211; Librarookie &#8211; \u535a\u5ba2\u56ed<\/p>\n<\/li>\n<p id=\"ssl\u53cc\u5411\u8bc1\u4e66\u8ba4\u8bc1\u914d\u7f6e\">SSL\u53cc\u5411\u8bc1\u4e66\u8ba4\u8bc1\u914d\u7f6e<\/p>\n<li>\n<p>\u521b\u5efa\u670d\u52a1\u5668\u8bc1\u4e66&#xff0c;\u521b\u5efa\u5ba2\u6237\u7aef\u8bc1\u4e66<\/p>\n<\/li>\n<li>\n<p>\u5bfc\u51fa\u670d\u52a1\u5668\u516c\u94a5\u8bc1\u4e66&#xff0c;\u5bfc\u51fa\u5ba2\u6237\u7aef\u516c\u94a5\u8bc1\u4e66<\/p>\n<\/li>\n<li>\n<p>\u5c06\u670d\u52a1\u5668\u516c\u94a5\u8bc1\u4e66\u5bfc\u5165\u5ba2\u6237\u7aef&#xff08;\u5ba2\u6237\u7aef\u4fe1\u4efb\u670d\u52a1\u5668&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5c06\u5ba2\u6237\u7aef\u516c\u94a5\u8bc1\u4e66\u5bfc\u5165\u4fe1\u4efb\u5e93&#xff08;\u670d\u52a1\u5668\u4fe1\u4efb\u5ba2\u6237\u7aef&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u914d\u7f6e Tomcat\/conf\/server.xml&#xff0c;\u5e76\u5f00\u542f\u53cc\u5411\u8ba4\u8bc1&#xff08;clientAuth\u7684\u503c\u6539\u4e3atrue)<\/p>\n<p> &lt;Connector port&#061;&#034;8443&#034; protocol&#061;&#034;HTTP\/1.1&#034; SSLEnabled&#061;&#034;true&#034;<br \/>\n    maxThreads&#061;&#034;150&#034; scheme&#061;&#034;https&#034; secure&#061;&#034;true&#034;<br \/>\n    clientAuth&#061;&#034;true&#034; sslProtocol&#061;&#034;TLS&#034;<br \/>\n    keystoreFile&#061;&#034;~\/ssl\/tomcat.jks&#034; keystorePass&#061;&#034;123456&#034;<br \/>\n    truststoreFile&#061;&#034;~\/ssl\/truststore.jks&#034; truststorePass&#061;&#034;123456&#034;<br \/>\n\/&gt; <\/li>\n<li>\n<p>Keytool \u914d\u7f6eTomcat\u7684 HTTPS\u53cc\u5411\u8ba4\u8bc1:<\/p>\n<p>Keytool \u914d\u7f6eTomcat\u7684 HTTPS\u53cc\u5411\u8ba4\u8bc1 &#8211; Librarookie &#8211; \u535a\u5ba2\u56ed<\/p>\n<\/li>\n<p id=\"\u5e38\u89c1\u95ee\u9898\">\u5e38\u89c1\u95ee\u9898:<\/p>\n<ul>\n<li>\n<p>\u6b64\u670d\u52a1\u5668\u65e0\u6cd5\u8bc1\u5b9e\u5b83\u662f\u201c192.168..\u201d &#8211; \u60a8\u8ba1\u7b97\u673a\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0d\u4fe1\u4efb\u5176\u5b89\u5168\u8bc1\u4e66 \u3002\u3002\u3002<\/p>\n<p>&#8212; \u5ba2\u6237\u7aef\u672a\u5bfc\u5165\u670d\u52a1\u5668\u8bc1\u4e66<\/p>\n<\/li>\n<li>\n<p>\u6b64\u670d\u52a1\u5668\u65e0\u6cd5\u8bc1\u5b9e\u5b83\u5c31\u662f\u201c192.168..\u201d &#8211; \u5b83\u7684\u5b89\u5168\u8bc1\u4e66\u6ca1\u6709\u6307\u5b9a\u4e3b\u9898\u5907\u7528\u540d\u79f0 \u3002\u3002\u3002<\/p>\n<p>&#8212; \u751f\u6210\u670d\u52a1\u5668\u8bc1\u4e66\u5e93\u672a\u4f7f\u7528 -ext\u53c2\u6570<\/p>\n<\/li>\n<li>\n<p>\u201c192.168..\u201d\u4e0d\u63a5\u53d7\u60a8\u7684\u767b\u5f55\u8bc1\u4e66&#xff0c;\u6216\u8005\u60a8\u53ef\u80fd\u6ca1\u6709\u63d0\u4f9b\u767b\u5f55\u8bc1\u4e66\u3002\u3002\u3002<\/p>\n<p>&#8212; Tomcat\u914d\u7f6e\u5f00\u4e86\u53cc\u5411\u8ba4\u8bc1&#xff0c;\u4e14\u672a\u6307\u5b9a\u4fe1\u4efb\u8bc1\u4e66\u5e93&#xff08;truststore&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>\u53c2\u8003\u5927\u795e\u8fde\u63a5&#xff1a;<\/p>\n<p>1\u3001Keytool \u5de5\u5177\u7684\u4ecb\u7ecd\u4e0e\u4f7f\u7528 &#8211; Librarookie &#8211; \u535a\u5ba2\u56ed<\/p>\n<p>2\u3001Keytool \u914d\u7f6eTomcat\u7684 HTTPS\u53cc\u5411\u8ba4\u8bc1 &#8211; Librarookie &#8211; \u535a\u5ba2\u56ed<\/p>\n<p>3\u3001Keytool \u914d\u7f6eTomcat\u7684 HTTPS\u5355\u5411\u8ba4\u8bc1 &#8211; Librarookie &#8211; \u535a\u5ba2\u56ed<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf29\u6b21\u3002Keytool\u5de5\u5177\u548c java.security.cert.CertificateException\u5f02\u5e38\u5904\u7406_java.security.cert.certificateexception: chain validation failed<\/p>\n","protected":false},"author":2,"featured_media":12289,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,606,43],"topic":[],"class_list":["post-12292","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-ssl","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: \u670d\u52a1\u5668\u8bc1\u4e66\u94fe\u9a8c\u8bc1\u5931\u8d25 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/12292.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: \u670d\u52a1\u5668\u8bc1\u4e66\u94fe\u9a8c\u8bc1\u5931\u8d25 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf29\u6b21\u3002Keytool\u5de5\u5177\u548c java.security.cert.CertificateException\u5f02\u5e38\u5904\u7406_java.security.cert.certificateexception: chain validation failed\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/12292.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T11:26:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418112654-680236fe29573.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/12292.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/12292.html\",\"name\":\"javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: \u670d\u52a1\u5668\u8bc1\u4e66\u94fe\u9a8c\u8bc1\u5931\u8d25 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T11:26:55+00:00\",\"dateModified\":\"2025-04-18T11:26:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/12292.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/12292.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/12292.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: \u670d\u52a1\u5668\u8bc1\u4e66\u94fe\u9a8c\u8bc1\u5931\u8d25\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: \u670d\u52a1\u5668\u8bc1\u4e66\u94fe\u9a8c\u8bc1\u5931\u8d25 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/12292.html","og_locale":"zh_CN","og_type":"article","og_title":"javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: \u670d\u52a1\u5668\u8bc1\u4e66\u94fe\u9a8c\u8bc1\u5931\u8d25 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf29\u6b21\u3002Keytool\u5de5\u5177\u548c java.security.cert.CertificateException\u5f02\u5e38\u5904\u7406_java.security.cert.certificateexception: chain validation failed","og_url":"https:\/\/www.wsisp.com\/helps\/12292.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T11:26:55+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418112654-680236fe29573.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/12292.html","url":"https:\/\/www.wsisp.com\/helps\/12292.html","name":"javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: \u670d\u52a1\u5668\u8bc1\u4e66\u94fe\u9a8c\u8bc1\u5931\u8d25 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T11:26:55+00:00","dateModified":"2025-04-18T11:26:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/12292.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/12292.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/12292.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: \u670d\u52a1\u5668\u8bc1\u4e66\u94fe\u9a8c\u8bc1\u5931\u8d25"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/12292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=12292"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/12292\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/12289"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=12292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=12292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=12292"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=12292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}