Provider fails to authenticate against Hash/Path using .NET SDK

Provider fails to authenticate against Hash/Path using .NET SDK

109
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 12:57 PM


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.




Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000rsMCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail