![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
证书
文章平均质量分 77
tianlang519241
沙舟狼客IT工作室,望大家多多支持!!!!!!!!
展开
-
利用BC的X509v3CertificateBuilder组装X509证书
// 设置开始日期和结束日期 long year = 360 * 24 * 60 * 60 * 1000; Date notBefore = new Date(); Date notAfter = new Date(notBefore.getTime() + year); // 设置颁发者和主题 String issuerString = "CN=root,OU=原创 2017-04-07 10:40:07 · 3455 阅读 · 2 评论 -
利用BC替换X509证书的公钥
public static X509Certificate replaceCertPublicKey(final X509Certificate certificate,PublicKey _publicKey) throws CertificateException { //公钥算法 String pubAlg = _publicKey.getAlgorithm();原创 2017-04-07 10:40:22 · 1501 阅读 · 0 评论