搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How to implement a client application to import certificate?

  • 1 个回答
  • 7 人有此问题
  • 2 次查看
  • 最后回复者为 gnittala

more options

Hi,

We write a small application(in VC) to import the user's PKCS#12 certificate to their browsers(no matter what browsers, IE,firefox,chrome,opera...) automatically to minimize user's manual operation. Now it can import PKCS#12 to CertStore of Microsoft, which means support IE/Chrome/Opera. But how can I import a pfx to FireFox in programm? I only found certutil.exe, but we prefered API and libraries which can link into our application. Is this viable? Where can I find such APIs? I read NSS reference, it seems not what I want. Or you have other suggestions?

Thank you in advance.

Hi, We write a small application(in VC) to import the user's PKCS#12 certificate to their browsers(no matter what browsers, IE,firefox,chrome,opera...) automatically to minimize user's manual operation. Now it can import PKCS#12 to CertStore of Microsoft, which means support IE/Chrome/Opera. But how can I import a pfx to FireFox in programm? I only found certutil.exe, but we prefered API and libraries which can link into our application. Is this viable? Where can I find such APIs? I read NSS reference, it seems not what I want. Or you have other suggestions? Thank you in advance.

所有回复 (1)

more options

Hello, Based on your response, you are looking for a C++ application that can import the certificate into Mozilla's certificate store. Is that correct? If so, you can use the NSS APIs[1] to do this. There is a certificate import API in NSS[2] that can be used to implement this. You will need to initialize the certificate store and then import the required certificate. I was also able to locate a StackOverflow link[3] that can help you in this. Please let us know if this helps you in importing the certificates. Also have provided reference for a Javascript API for doing the same thing [4].

  1. NSS Certificate functions
  2. MXR reference for CERT_ImportCerts
  3. StackOverflow's link for NSS cert import
  4. Javascript API to import certificates

Hope this helps in your application. Please do respond if you need further assistance and I will see if I can locate any test code.