java - 为 Windows Azure 生成证书

标签 java azure certificate

我想生成证书、公钥、私钥以及通过 java 代码连接 Windows Azure 所需的所有其他内容。我更喜欢只使用 keytool。 我该怎么做?

java代码需要一个包含私钥的JKS文件。

谢谢!

最佳答案

Keytool 可以在一定程度上为您提供帮助,但是 Keytool 和 OpenSSL 的组合将为您提供将基于 Java 的应用程序连接到 Windows Azure 所需的一切(管理门户以及启用 SSL 的 Web 应用程序。

请按照 Migrating Keys from 'keytool' to 'OpenSSL' 的文档进行操作

  1. 使用“keytool”生成私钥和公钥对。
  2. 使用“keytool”从 PrivateKeyEntry 导出自签名证书。
  3. 使用“keytool”显示证书的详细信息。
  4. 使用“OpenSSL”查看“keytool”导出的证书。
  5. 编写“DumpKey.java”以从“keytool” keystore 文件中转储 key 对。
  6. 使用“OpenSSL”将转储的 key 对从二进制转换为 Base64 编码。
  7. 使用“OpenSSL”查看从“keytool” keystore 文件转储和转换的 key 对。

关于java - 为 Windows Azure 生成证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12094933/

相关文章:

c# - 从商店加载 X509Certificate2 证书链

java - 从性能角度来看,使用 Spring Rest api 从服务器读取较大尺寸的文件

java - Android OrientationEventListener 进行多次调用

azure - 使用 Azure AD 与服务器进行 React-Native 身份验证

Azure 登录工作时出错 - 获取租户消息时出错 - 代理设置?

certificate - 如何使用 keytool 使用 SAN 创建 CSR

java - 为什么我的 9-patch 在Android中这么小?

java - java中Bencode字符串长度

Azure Powershell 新-AzADUser : A parameter cannot be found that matches parameter name 'MobilePhone'

java - 如何使用 BasicHttpBinding 和 BasicHttpSecurityMode.TransportWithCredential : 将 header 元素 "mustunderstand=0"设置到 SOAP 请求中