Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

How to implement a client application to import certificate?

  • 1 antwoord
  • 7 hierdie probleem
  • 2 views
  • Laaste antwoord deur 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.

All Replies (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.