SaveCertificate Method
Saves the current certificate to a file.
Syntax
[VB.NET] Public Sub SaveCertificate(ByVal FileName As String)
[C#] public void SaveCertificate(string fileName);
Remarks
This method will save the current certificate to a file. The certificate is saved in base64 (PEM) format to the file specified by FileName. If the file exists, it is overwritten.
Note: This does not include the private key. To export a certificate with the private key, use ExportCertificate.
NOTE: This method has a corresponding asynchronous version (SaveCertificateAsync) for use in the Xamarin environment.