How to get Container name for PFX key?

眉间皱痕 提交于 2019-12-05 22:45:12

Download the Keypal utility and double click it, you will find all the names of the key containers. You can choose between user profile and machine profile.

Alternatively, enumerate the certificate store to find the certificate of interest via its subject and then you can use CertGetCertificateContextProperty to get the value for PCERT_KEY_PROV_INFO_PROP_ID. This approach requires the use of Microsoft's cryptoAPI

you could just re-install the key with a new container name:

sn -i mykey.pfx VS_ABAB1234ABAB1234
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!