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. |