Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

import certificate

  • 3 απαντήσεις
  • 3 έχουν αυτό το πρόβλημα
  • 3 προβολές
  • Τελευταία απάντηση από AP97

more options

Im deploying Firefox ESR 52. The silent installtion works very well. my only problem is that i don't find out how i can import a Certificate with certutil. Not only import. I also wanna hit the 3 checkboxes of trust from website mail and root server.

Im deploying Firefox ESR 52. The silent installtion works very well. my only problem is that i don't find out how i can import a Certificate with certutil. Not only import. I also wanna hit the 3 checkboxes of trust from website mail and root server.

Όλες οι απαντήσεις (3)

more options

hi AP97, does this page help you: https://wiki.mozilla.org/CA:AddRootToFirefox? it lists a few other options than certutil...

more options

I think that the correct code should be 'certdb2' instead of 'certdb' on the last line.

var Cc = Components.classes;
var Ci = Components.interfaces;
var certdb = Cc["@mozilla.org/security/x509certdb;1"].getService(Ci.nsIX509CertDB);
var certdb2 = certdb;
try {
   certdb2 = Cc["@mozilla.org/security/x509certdb;1"].getService(Ci.nsIX509CertDB2);
} catch (e) {}
cert = "MIIHPT...zTMVD"; // This should be the certificate content with no line breaks at all.
<u>certdb2</u>.addCertFromBase64(cert, "C,C,C", "");
more options

Thank you cor-el for your hint with certdb2 i try and give feedback.