Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Learn More

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

How to implement a client application to import certificate?

  • 1 antwoord
  • 7 hebben dit probleem
  • 2 weergaven
  • Laatste antwoord van 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.

Alle antwoorden (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.