C ++受信任的发布者证书存储区 [英] C++ Trusted publisher certificate store

查看:95
本文介绍了C ++受信任的发布者证书存储区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在受信任的发布者和受信任的根证书颁发机构证书商店中安装.cer文件。我在msdn中找到了一些材料。我调用CertOpenStore打开一个特定的商店位置并调用CertAddCertificateContextToStore将.cer文件安装到store.to intall进入受信任的根证书颁发机构证书存储区,它运行良好。但它总是将.cer文件安装到Trusted Enterprise商店...我的代码是CertOpenStore(CERT_STORE_PROV_SYSTEM,0,0,CERT_STORE_OPEN_EXISTING_FLAG | CERT_SYSTEM_STORE_LOCAL_MACHINE,L信任);

帮助我plz,thx advanced。

i want to intall a .cer file in both the Trusted publisher and the Trusted Root Certification Authorities certificate store.i found some material in msdn. i call "CertOpenStore" to open a specific store location and call "CertAddCertificateContextToStore" to install .cer file into store.to intall into the Trusted Root Certification Authorities certificate store,it works well.but it always intall .cer file into Trusted Enterprise store...my code is CertOpenStore(CERT_STORE_PROV_SYSTEM,0,0,CERT_STORE_OPEN_EXISTING_FLAG | CERT_SYSTEM_STORE_LOCAL_MACHINE, L"trust");
help me plz,thx advanced.

推荐答案

尝试TrustedRoot而不是trust
Try "TrustedRoot" instead of "trust"


这篇关于C ++受信任的发布者证书存储区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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