System.Security.Cryptography.X509Certificates.X509Certificate.Export C# (CSharp) Method

Export() public method

public Export ( System contentType ) : byte[]
contentType System
return byte[]
        public virtual byte[] Export(System.Security.Cryptography.X509Certificates.X509ContentType contentType)
        {
            throw null;
        }

Same methods

X509Certificate::Export ( System contentType, System password ) : byte[]
X509Certificate::Export ( System contentType, string password ) : byte[]
X509Certificate::Export ( X509ContentType contentType ) : byte[]
X509Certificate::Export ( X509ContentType contentType, SecureString password ) : byte[]
X509Certificate::Export ( X509ContentType contentType, string password ) : byte[]

Usage Example

Exemplo n.º 1
0
 public void UpdateCertificate(X509Certificate cert)
 {
     _updateCertificate.UpdateCertificate(cert);
     File.WriteAllBytes(CertPathOnDisk, cert.Export(X509ContentType.Pfx, CertPassword));
     _lastUpdate = DateTime.UtcNow;
     LogInfo("Certificate successfully updated");
 }
All Usage Examples Of System.Security.Cryptography.X509Certificates.X509Certificate::Export