使用加密 API 导入 DER 编码的公钥

问题描述:

是否可以使用 MS 加密 API 导入 DER 编码的公钥?所以我可以验证签名?我需要一段代码或帮助 MS Crypto API 来导入 DER 编码的公钥/证书.

Is it possible to import DER encoded public key using MS crypto API? So i can verfiy signatures ? I need a piece of code or help for MS Crypto API for importing DER encoded public-key/certificate.

以下三个步骤将允许您导入您的公钥证书

Following three steps will allow you to import your public key certificate

  1. 使用 CertCreateCertificateContext

使用 CertOpenStore 用于地址簿

使用 CertAddCertificateContextToStore