public bool AddCertificate(string filename) {
X509Certificate x509 = ReadCertificate(filename);
if(filename.StartsWith("ca")) {
return AddCACertificate(x509);
} else if(filename.StartsWith("lc")) {
return AddSignedCertificate(x509);
} else {
/// @todo add ability to cache certificates.
}
return false;
}