gpt4 book ai didi

ssl - 如何使用公钥隐私/完整性模式验证 PFX

转载 作者:太空宇宙 更新时间:2023-11-03 14:37:06 25 4
gpt4 key购买 nike

我有一个生成 P12/PFX 格式输出数据的嵌入式软件。
PFX 不受密码保护,这意味着数据使用公钥加密并使用我的私钥签名,而不是使用密码派生的加密/mac key 。
RFC7292 section 3.1这称为公钥隐私和完整性模式。

我的问题是,如何验证收到的 PFX,例如使用 openssl? (我不限于使用 openssl,顺便说一句,我用谷歌搜索但找不到方法...)

我试过了

openssl pkcs12 -info -in test.pfx

但是openssl要求密码,这里不适用。我是否错过了不要求输入密码的任何选项?

最佳答案

openssl pkcs12 -info -in test.pfx -passin pass: -passout pass: 

或者,你可以使用

openssl pkcs12 -info -in test.pfx

当它要求输入密码或 PEM 密码短语时(您在生成 pfx 文件时没有使用任何密码),只需按 Enter。

关于ssl - 如何使用公钥隐私/完整性模式验证 PFX,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46790280/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com