Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

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.