获取证书并将其添加到Java信任库时,只有https URL? [英] Get certificate and add it to a Java truststore, when only having https URL?

查看:167
本文介绍了获取证书并将其添加到Java信任库时,只有https URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过Google Cloud Message服务器向Android设备发送推送通知。

I'm trying to send push notifications to Android devices through the Google Cloud Message servers.

我们使用的URL是:

https://android.googleapis.com/gcm/send

在我们的企业应用程序中,我们不使用默认的CA权限,并且出于安全原因手动为我们信任的每个实体添加到由SSLContext属性加载的信任库文件中。
我想将GCM证书添加到我们的信任库。

In our entreprise applications, we do not use the default CA authorities and we add manually each entity we trust for security reason, in a truststore file loaded by SSLContext properties. I'd like to add GCM certificate to our truststore.

我不知道如何从该URL获取证书。看起来Chrome / Firefox导出方式不起作用,因为页面重定向到另一个非SSL页面。

I don't know how to get the certificate from that URL. It seems the Chrome/Firefox export way is not working since the page redirects to another non-SSL page.

有人有解决方案吗?

推荐答案

使用 Portecle 。您可以打开目标密钥库,然后使用检查> 检查SSL / TLS连接,输入 android.googleapis.com 443 ,就完成了!

Use Portecle. You can open the target key store, then use Examine > Examine SSL/TLS Connection, enter android.googleapis.com and 443 and you're done!

这篇关于获取证书并将其添加到Java信任库时,只有https URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆