Edit

Share via


IChannelCredentials.SetClientCertificateFromFile Method

Definition

Retrieves a certificate from a file and adds it to the client credentials.

C#
public void SetClientCertificateFromFile(string fileName, string password, string keyStorageFlags);

Parameters

fileName
String

File name that contains the certificate.

password
String

Password required for the file.

keyStorageFlags
String

Storage flags for the certificate.

Remarks

When keyStorageFlags is set to null or an empty string, the default storage flags are used.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1