rem: certdb.exportPKCS12File(null, fp.file, certs.length, certs); 
add: certdb.exportPKCS12File(null, fp.file, selected_certs.length, selected_certs); 
context: function backupCerts(){  getSelectedCerts();  var numcerts= selected_certs.length;  var certs = [];  var windowName = "";  for (var t=0; t<numcerts; t++) {    //var token = tokendb.findTokenByName(selected_certs[t][0]);    var token = null;    if (selected_certs[t][1].length == 0) break; // workaround    certs[t] = certdb.getCertByDBKey(selected_certs[t][1], token);  }  var bundle = srGetStrBundle("chrome://pippki/locale/pippki.properties");  var fp = Components.classes[nsFilePicker].createInstance(nsIFilePicker);  fp.init(window,          bundle.GetStringFromName("chooseP12BackupFileDialog"),          nsIFilePicker.modeSave);  fp.appendFilter("PKCS12 Files (*.p12)", "*.p12");  fp.appendFilters(nsIFilePicker.filterAll);  if (fp.show() == nsIFilePicker.returnOK ||      fp.show() == nsIFilePicker.returnReplace) {    certdb.exportPKCS12File(null, fp.file, certs.length, certs);  }  // don't really know it was successful...  alert(bundle.GetStringFromName("SuccessfulP12Backup"));}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/31c82812d4fbec801984edc0a495dcc1b57b621e/certManager.js/clean/security/manager/pki/resources/content/certManager.js