Provider fails to authenticate against Hash/Path using .NET SDK
Symptom
The authentication fails when the provider is using Hash/Path authentication.
A possible error message could be:
APPPR501E Cryptography utilities exception was thrown. Message: APPCU001E Error opening file: [.NET Unknown path - Reason:Value cannot be null. Parameter name: type (Method:System.Object GetPassword(System.Object, System.Object[]))] "
Environment
10.10;12.0;12.1;12.4;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Credential Provider Credential Provider
Cause
The .NET SDK will try to authenticate the hash of the executable (e.g Powershell.exe) and not the script's Hash.
Resolution
When using powershell with hash/path authentication, please invoke the CLIPasswordSDK, as it's the only one that will authenticate the actual script and not the executed program (e.g powershell.exe) under these conditions.
Additional Information
Details
SYMPTOM:
The authentication fails when the provider is using Hash/Path authentication.
A possible error message could be  "APPPR501E Cryptography utilities exception was thrown. Message: APPCU001E Error opening file: [.NET Unknown path - Reason:Value cannot be null. Parameter name: type (Method:System.Object GetPassword(System.Object, System.Object[]))] "
PROBLEM:
The .NET SDK will try to authenticate the hash of the executable (e.g Powershell.exe) and not the script's Hash.
SOLUTION:
When using powershell with hash/path authentication, please invoke the CLIPasswordSDK, as it's the only one that will authenticate the actual script and not the executed program (e.g powershell.exe) under these conditions.