SSL 证书和 Google Checkout
我已经为我的 java web 应用程序设置了 google checkout,我想接收新订单的通知,并且在收到通知时我想执行一些业务逻辑。 我使用 tomcat 作为应用程序服务器。由于我没有域名,因此我在具有静态 IP 的个人计算机上运行我的应用程序。我正在从另一台机器访问我的应用程序,例如 https://my.static.IP:port/myWebApplication ,一切正常。现在的问题是谷歌结账通知需要SSL证书。我确实为 tomcat 创建了一个自签名 SSL 证书,但 google 抛出了以下 SSL 证书错误。
错误:
We encountered an error trying to access your server at https://my.static.IP:port/myWebApplication/notificationServlet -- the error we got is java.io.IOException: Error 'SSL_CERTIFICATE_ERROR' connecting to url 'https://my.static.IP:port/myWebApplication/notificationServlet'.
我这里有两个疑问:-
1.) 我不确定如何为我的 IP 创建 SSL 证书,以便 google 结帐通知接受它。
2.) 如果无法为 IP 创建 SSL,那么是否有其他方法可以实现不需要 SSL 的 google 结账通知。
谢谢。
I have setup google checkout for my java web application and I want to recieve notifications of new orders and on recieving notificatification I want to execute some business logic.
I am using tomcat as application server. As I do not have a domain name so I am running my application on my personal machine which have a static IP. I am accessing my application from another machine like https://my.static.IP:port/myWebApplication
and everything working fine. Now the problem is that google checkout notification needs SSL certificate. I did created a self signed SSL certificate for tomcat but google throwing following error for SSL certificate.
Error:
We encountered an error trying to access your server at https://my.static.IP:port/myWebApplication/notificationServlet -- the error we got is java.io.IOException: Error 'SSL_CERTIFICATE_ERROR' connecting to url 'https://my.static.IP:port/myWebApplication/notificationServlet'.
I have two queries here:-
1.) I am not sure how to create SSL certicficate for my ip so that it should be accepted fo google checkout notification.
2.) If it is not possible to create SSL for IP then is there some other way implementing google checkout notification whcich do not require SSL.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Google 给出了答案:http:// support.google.com/checkout/sell/bin/answer.py?hl=en&answer=134466
因此,看来您应该购买证书才能使用它。
There is an answer from Google: http://support.google.com/checkout/sell/bin/answer.py?hl=en&answer=134466
So, seems you should buy a certificate in order to use it.
如果您使用的是 Checkout notification API 2.5 版,则不需要 SSL:
http ://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Notification_API.html
If you're using version 2.5 of the Checkout Notification API you do not need SSL:
http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Notification_API.html