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 创建证书签名请求?
基础教程推荐
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
