How do you create a Certificate Signing Request using the KeyStore on Android?(如何在 Android 上使用 KeyStore 创建证书签名请求?)
问题描述
我正在使用 KeyStore 在 Android 应用程序中生成 SSL 密钥对
API.我想从公钥/私钥对创建证书签名请求 (CSR),以便将其发送到外部 CA 进行签名.
I'm generating a SSL KeyPair in an Android app using the KeyStore
API. I want to create a Certificate Signing Request (CSR) from the Public/Private key pair so that it can be sent to an external CA for signing.
这可能吗?如果可能的话,我想使用内置的 Android 库而不是 BouncyCastle,以便让 Android 安全地存储密钥.
Is this possible? I'd like to use the builtin Android libraries rather than BouncyCastle if possible, in order to have Android store the keys securely.
推荐答案
证书注册流程
检查此链接.它生成密钥对和 CSR.关于在 android 手机上生成 CSR(证书签名请求),我认为使用 Spongycastle 相当简单.它是 Bouncycastle 的 android 端口.
Check this link. It generate key pair and CSR. Regarding generating a CSR (certificate sign request) on the android phone, I think it is rather straightforward to use Spongycastle instead. It is an android port of Bouncycastle.
这篇关于如何在 Android 上使用 KeyStore 创建证书签名请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 Android 上使用 KeyStore 创建证书签名请求?


- 如何指定 CORS 的响应标头? 2022-01-01
- 将 Java Swing 桌面应用程序国际化的最佳实践是什么? 2022-01-01
- java.lang.IllegalStateException:Bean 名称“类别"的 BindingResult 和普通目标对象都不能用作请求属性 2022-01-01
- 未找到/usr/local/lib 中的库 2022-01-01
- 在 Java 中,如何将 String 转换为 char 或将 char 转换 2022-01-01
- 获取数字的最后一位 2022-01-01
- 如何使 JFrame 背景和 JPanel 透明且仅显示图像 2022-01-01
- GC_FOR_ALLOC 是否更“严重"?在调查内存使用情况时? 2022-01-01
- 转换 ldap 日期 2022-01-01
- Eclipse 的最佳 XML 编辑器 2022-01-01