Vault - Getting error "CASCF034E Cannot decrypt password from file" when scheduling the EVD execution.

Vault - Getting error "CASCF034E Cannot decrypt password from file" when scheduling the EVD execution.

147
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:03 PM


Symptom


When trying to run a Windows Scheduler Task executing an EVD command as NT AUTHORITY\SYSTEM, the following error is shown in the EVD log output:
"06/07/2022 21:40:57 Starting ExportVaultData Utility (Version 12.2.0.70)
06/07/2022 21:40:57 Error: CASCF034E Cannot decrypt password from file [C:\CyberArk\evd\CreateCredFile\user.cred] using application verifiers - are you authorized to use this credentials file? Rc = -2146893813.
06/07/2022 21:40:57 ExportVaultData Utility ended with errors."


The credential file has been created using the following command:
CreateCredFile.exe user.cred Password /username EVDuser /password <MyPassword> /IpAddress /Hostname /OSUsername "NT AUTHORITY\SYSTEM" /ExePath "C:\CyberArk\evd\ExportVaultData.exe" /AppType EVD /DpapiMachineProtection /DpapiUserProtection



Environment


12.1;12.2;12.6 Privileged Access Manager (PAM, self-hosted) Export Vault Data;Reports PAS 12.1 or above.

Cause


There is not a way to use the "DpapiUserProtection" as this SYSTEM user.

Resolution


Create the credential file using the following command which uses an entropy file instead of the DPAPI user protection:
CreateCredFile.exe user.cred Password /username EVDuser /password <MyPassword> /IpAddress /Hostname /OSUsername "NT AUTHORITY\SYSTEM" /ExePath "C:\CyberArk\evd\ExportVaultData.exe" /AppType EVD /EntropyFile /DpapiMachineProtection

After that, open the PrivateArk Client and set the "EVDuser" user password to <MyPassword> even thought it was already set to this value.

This time, there are two credential files to move to the EVD folder the EVD command will be launched from:

user.cred
user.cred.entropy


The scheduled execution of the EVD command should successfully run now.


Actions
  • Print
  • Copy Link

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