ImportFromStream Method
Loads a certificate from a stream.
Syntax
public void ImportFromStream(System.IO.Stream certStream, string password);
Public Sub ImportFromStream(ByVal CertStream As System.IO.Stream, ByVal Password As String)
Remarks
This method can load certificates saved in one of the following formats: DER, PEM, PFX, SPC.
Use the CertStream parameter to provide a stream containing the certificate data, and Password to specify the password. The Password parameter is optional. If it is omitted and it is later discovered that the certificate is password-encrypted, the PasswordNeeded event will be fired to request it.