Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

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.