public Export ( X509ContentType contentType ) : byte[] | ||
contentType | X509ContentType | |
Результат | byte[] |
public virtual byte[] Export(X509ContentType contentType)
{
return Export(contentType, (string)null);
}
X509Certificate::Export ( System contentType ) : byte[] | |
X509Certificate::Export ( System contentType, System password ) : byte[] | |
X509Certificate::Export ( System contentType, string password ) : byte[] | |
X509Certificate::Export ( X509ContentType contentType, SecureString password ) : byte[] | |
X509Certificate::Export ( X509ContentType contentType, string password ) : byte[] |
public void UpdateCertificate(X509Certificate cert) { _updateCertificate.UpdateCertificate(cert); File.WriteAllBytes(CertPathOnDisk, cert.Export(X509ContentType.Pfx, CertPassword)); _lastUpdate = DateTime.UtcNow; LogInfo("Certificate successfully updated"); }