RDS Certificate fixes

This commit is contained in:
vfedosevich 2015-03-04 06:55:34 -08:00
parent f8de8a70d1
commit 165847909f

View file

@ -69,9 +69,9 @@ namespace WebsitePanel.Portal.ProviderControls
plCertificateInfo.Visible = true; plCertificateInfo.Visible = true;
byte[] content = Convert.FromBase64String(certificate.Content); byte[] content = Convert.FromBase64String(certificate.Content);
var x509 = new X509Certificate2(content, password); var x509 = new X509Certificate2(content, password);
lblIssuedBy.Text = x509.Issuer.Replace("CN =", "").Replace("OU =", "").Replace("O =", "").Replace("L =", "").Replace("S =", "").Replace("C =", ""); lblIssuedBy.Text = x509.Issuer.Replace("CN=", "").Replace("OU=", "").Replace("O=", "").Replace("L=", "").Replace("S=", "").Replace("C=", "");
lblExpiryDate.Text = x509.NotAfter.ToLongDateString(); lblExpiryDate.Text = x509.NotAfter.ToLongDateString();
lblSanName.Text = x509.SubjectName.Name.Replace("CN =", ""); lblSanName.Text = x509.SubjectName.Name.Replace("CN=", "");
} }
} }