X
Tap here to go to the mobile version of the site.

Support Forum

Client Certificate on Android

Posted

How can a client certificate (.pfx) be installed on Firefox on android(v22)? Or is FireFox using the android certificate store?

How can a client certificate (.pfx) be installed on Firefox on android(v22)? Or is FireFox using the android certificate store?

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Android; Tablet; rv:22.0) Gecko/22.0 Firefox/22.0

More Information

Microrobot 18 solutions 204 answers

Helpful Reply

https://antportal.com/wiki/installing_client_certificates/

Scroll all the way down to Android. This should answer your question.

https://antportal.com/wiki/installing_client_certificates/ Scroll all the way down to Android. This should answer your question.
kbrosnan
  • Top 25 Contributor
  • Moderator
346 solutions 2533 answers

That is incorrect information. Firefox manages certificates itself. Firefox does not use the Android certificate databases.

Firefox should prompt to install the file if you can access it from the web. I used the files from https://bugzilla.mozilla.org/show_bug.cgi?id=550041 to test.

That is incorrect information. Firefox manages certificates itself. Firefox does not use the Android certificate databases. Firefox should prompt to install the file if you can access it from the web. I used the files from https://bugzilla.mozilla.org/show_bug.cgi?id=550041 to test.
cc2i 0 solutions 2 answers

Firefox import Certifcate Authority not user. You need to create AddOn. see my reply (in french forum) French Mozilla Forum

// Sample Function

{

   var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
   var browserWindow = wm.getMostRecentWindow('navigator:browser');
   var certDB = Cc["@mozilla.org/security/x509certdb;1"].getService(Ci.nsIX509CertDB);
   var filePicker = Cc[ "@mozilla.org/filepicker;1" ].createInstance(Ci.nsIFilePicker);
   filePicker.init( browserWindow, "Import Certificate", Ci.nsIFilePicker.modeOpen );
   filePicker.appendFilter( "Certificat","*.p12");
   var result = filePicker.open(function(e){
   if (e==Ci.nsIFilePicker.returnOK)
       {
       var theFile = filePicker.file;
       certDB.importPKCS12File(null, theFile);
       preferences.setBoolPref("installed", true);// For next launch...
       }
   });
 }
Firefox import Certifcate Authority not user. You need to create AddOn. see my reply (in french forum) [http://forums.mozfr.org/viewtopic.php?f=32&t=114953&p=740172#p740172 French Mozilla Forum] // Sample Function { var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator); var browserWindow = wm.getMostRecentWindow('navigator:browser'); var certDB = Cc["@mozilla.org/security/x509certdb;1"].getService(Ci.nsIX509CertDB); var filePicker = Cc[ "@mozilla.org/filepicker;1" ].createInstance(Ci.nsIFilePicker); filePicker.init( browserWindow, "Import Certificate", Ci.nsIFilePicker.modeOpen ); filePicker.appendFilter( "Certificat","*.p12"); var result = filePicker.open(function(e){ if (e==Ci.nsIFilePicker.returnOK) { var theFile = filePicker.file; certDB.importPKCS12File(null, theFile); preferences.setBoolPref("installed", true);// For next launch... } }); }
cc2i 0 solutions 2 answers

Warning , a bug block certificate usage. see : [https://bugzilla.mozilla.org/show_bug.cgi?id=921477]

  • status-firefox26: --- → affected
  • status-firefox24: --- → affected
  • status-firefox27: --- → fixed
  • status-firefox25: --- → affected

It's work with Firefox 23 or the Nightly Version.

Warning , a bug block certificate usage. see : [[https://bugzilla.mozilla.org/show_bug.cgi?id=921477]] * status-firefox26: --- → affected * status-firefox24: --- → affected * status-firefox27: --- → fixed * status-firefox25: --- → affected It's work with Firefox 23 or the Nightly Version.