Brunet.Security.CertificateHandler.AddCertificate C# (CSharp) Method

AddCertificate() public method

public AddCertificate ( string filename ) : bool
filename string
return bool
    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;
    }