我已按照此处概述的步骤生成签名区域文件:https ://www.digitalocean.com/community/tutorials/how-to-setup-dnssec-on-an-authoritative-bind-dns-server-- 2
在该文件的生成中,它给了我 2 个以 .private 和 .key 作为文件类型结尾的私钥和公钥文件,私钥文件的格式如下所示:
Private-key-format: v1.3
Algorithm: 7 (NSEC3RSASHA1)
Modulus: (random characters)
PublicExponent: (random characters)
PrivateExponent: (random characters)
Prime1: (random characters)
Prime2: (random characters)
Exponent1: (random characters)
Exponent2: (random characters)
Coefficient: (random characters)
Created: 20160415164633
Publish: 20160415164633
Activate: 20160415164633
我想以某种方式将这些文件放入 BouncyCastle 包中的 AsymmetricCypherKeyPair 对象中,以便可以像这样使用它:
privateKey = PrivateKeyInfoFactory.CreatePrivateKeyInfo(importedPair.Private).GetDerEncoded();
有谁知道 BouncyCastle 包中是否支持导入这种类型的公钥/私钥文件?