使用加密 API 导入 DER 编码的公钥 [英] Import DER encoded public key using crypto API

查看:74
本文介绍了使用加密 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

这篇关于使用加密 API 导入 DER 编码的公钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆