public ApiCACert(string FileName) { data = File.ReadAllText(FileName); var Cert = CertStore.GetCert(data); hash = Cert.Thumbprint; name = CertStore.GetName(data); pubkey = CertCommands.GetPubKey(data, true); start = Cert.NotBefore; end = Cert.NotAfter; }
public ApiCert(string FileName, string[] ParentFiles) { data = File.ReadAllText(FileName); var Cert = CertStore.GetCert(data); hash = Cert.Thumbprint; san = CertStore.GetSan(data); domain = CertStore.GetName(data); name = Cert.Subject; pubkey = CertCommands.GetPubKey(data, true); issuer = CertStore.GetSignerCertHash(data, ParentFiles); start = Cert.NotBefore; end = Cert.NotAfter; }