LoadCertificateFromDirectory Method
Overloads
LoadCertificateFromDirectory(String, String) |
Loads the Qlik Sense certificate used for direct connections from a folder. |
|
LoadCertificateFromDirectory(String, SecureString) |
Loads the Qlik Sense certificate used for direct connections from a folder. |
LoadCertificateFromDirectory(String, String)
Loads the Qlik Sense certificate used for direct connections from a folder.
Declaration
public static X509Certificate2Collection LoadCertificateFromDirectory(string path, string certificatePassword)
Parameters
Type | Name | Description |
---|---|---|
System.String | path |
The path to the folder containing the certificates. |
System.String | certificatePassword |
The password to use when reading the certificate. |
Returns
Type | Description |
---|---|
System.Security.Cryptography.X509Certificates.X509Certificate2Collection |
A certificate collection containing the Qlik Sense client certificate. |
Exceptions
Type | Condition |
---|---|
System.IO.DirectoryNotFoundException |
Thrown if argument directory is not found. |
System.IO.FileNotFoundException |
Thrown if argument directory does not contain a client certificate file. |
LoadCertificateFromDirectory(String, SecureString)
Loads the Qlik Sense certificate used for direct connections from a folder.
Declaration
public static X509Certificate2Collection LoadCertificateFromDirectory(string path, SecureString certificatePassword = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | path |
The path to the folder containing the certificates. |
System.Security.SecureString | certificatePassword |
The password to use when reading the certificate. |
Returns
Type | Description |
---|---|
System.Security.Cryptography.X509Certificates.X509Certificate2Collection |
A certificate collection containing the Qlik Sense client certificate. |
Exceptions
Type | Condition |
---|---|
System.IO.DirectoryNotFoundException |
Thrown if argument directory is not found. |
System.IO.FileNotFoundException |
Thrown if argument directory does not contain a client certificate file. |
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!