I use Fiddler dll to install Fiddler certificates:
public static bool InstallCertificate()
{
if (!string.IsNullOrEmpty(certmakerBcCert))
{
FiddlerApplication.Prefs.SetStringPref("fiddler.certmaker.bc.key", certmakerBcKey);
FiddlerApplication.Prefs.SetStringPref("fiddler.certmaker.bc.cert", certmakerBcCert);
}
if (!CertMaker.rootCertExists())
{
//CLog.writeNoLogInDB("Creating SSL certificate");
if (!CertMaker.createRootCert())
return false;
if (!CertMaker.trustRootCert())
return false;
certmakerBcCert = FiddlerApplication.Prefs.GetStringPref("fiddler.certmaker.bc.cert", null);
certmakerBcKey = FiddlerApplication.Prefs.GetStringPref("fiddler.certmaker.bc.key", null);
}
return true;
}
However, they don't install into firefox. Every browsers work fine except Firefox. Is there a way to install them into Firefox also through code?
Thanks!!
Note: I already have a program to install a certificate in Firefox, but I need them firstto be generated...