Deploy AppEngine Project (Eclipse): javax.net.ssl.SSLHandshakeException

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. 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值