If you are getting the below exception during Deploy AppEngine Project
step (in Eclipse), that means you need to import SSL certificate of
google.com into your cacerts file under JRE\LIB\SECURITY folder.
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to
find valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown
Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate
(..........
Steps to import Google' SSL certifcate
=============================
(1) Visit https://appengine.google.com/ using your browser (I tried
this using IE6 but I am sure other browsers will have a similar
functionality).
(2) Click the "Lock" icon at the status bar. You will see Certificate
dialog. Click "Details" tab.
(3) Click "Copy to" button and follow the wizard. Select "DER
encoded.." on the Export File Format page. Click "Next"
(4) Browse to some folder, give it a name and click "Save". Example: d:\keystore\google.cer
(5) Run the below command from your JRE/BIN folder. Make sure you
adjust the locations of -keystore and -file in the below command.
keytool -import -keystore keytool -import -keystore D:\gbtn\jdk1.6.0_10\jre\lib\security\cacerts -file d:\keystore\google.cer
(7) Try Deploy again. If your Deploy tool is using the same JRE where
you imported the google SSL certificate in above steps, you should be
fine now.
Deploy AppEngine Project (Eclipse): javax.net.ssl.SSLHandshakeException
最新推荐文章于 2024-12-05 10:38:45 发布
本文介绍了当在Eclipse中部署App Engine项目遇到SSL握手异常时的解决方法。需将Google的SSL证书导入到JRELIBSECURITYcacerts文件中。步骤包括:从浏览器获取证书、导出为DER格式、使用keytool命令导入。
1886

被折叠的 条评论
为什么被折叠?



