Certificate.Save Method
Namespace: Rebex.Security.Certificates
Assembly: Rebex.Common.dll (version 7.0.9448)
Save(String)
Saves the certificate to the supplied file in DER format.
Declaration
public void Save(string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fileName | Path to the file to save the certificate to. If the file exists, it is overwritten. |
Save(Stream)
Saves the certificate to the supplied stream in DER format.
Declaration
public void Save(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream to save the certificate to. |
Save(String, CertificateFormat)
Saves the certificate to the supplied file in specified format.
Declaration
public void Save(string fileName, CertificateFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fileName | Path to the file to save the certificate to. If the file exists, it is overwritten. |
| CertificateFormat | format | Certificate format. |
Save(Stream, CertificateFormat)
Saves the certificate to the supplied stream in specified format.
Declaration
public void Save(Stream stream, CertificateFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream to save the certificate to. |
| CertificateFormat | format | Certificate format. |
Save(String, CertificateFormat, String)
Saves the certificate to the supplied file in specified format.
Declaration
public void Save(string fileName, CertificateFormat format, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fileName | Path to the file to save the certificate to. If the file exists, it is overwritten. |
| CertificateFormat | format | Certificate format. |
| String | password | Password (only used by PFX/P12 format). |
Remarks
On .NET Compact Framework, this is only supported in Windows CE 5.0 or later.
Save(Stream, CertificateFormat, String)
Saves the certificate to the supplied stream in specified format.
Declaration
public void Save(Stream stream, CertificateFormat format, string password)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | Stream to save the certificate to. |
| CertificateFormat | format | Certificate format. |
| String | password | Password (only used by PFX/P12 format). |
Remarks
On .NET Compact Framework, this is only supported in Windows CE 5.0 or later.