CreateCredFile utility not generating file after successful command.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

CreateCredFile utility not generating file after successful command.

L2 Linker

I'm trying to manually create a new cred file on our PSM server and following CyberArk documentation I'm running the following command from an admin command prompt that's had it's directory changed to CyberArk\PSM\Vault

 

CreateCredFile.exe psmapp.cred Password -Username <USERNAME_HERE> -Password <PASSWORD_HERE> -AppType PSMApp -DPAPIMachineProtection -EntropyFile -ExePath "<INSTALL_PATH_HERE>\CAPSM.EXE"

 

I get the following result which mentions username being redundant but then says it was successful. However in the directory no new cred file is actually created or modified. I've tried copying out the existing cred file to see if that would do it but the command still does nothing.

 

068Vy00000vUzOgIAK.jpg

1 accepted solution

Accepted Solutions

L6 Presenter

Hi @Conner DeRosier​ 

 

There are known issue in CreateCredFile in PSM ver 14.6.

Just replace the exe and dll files from ver 14.2 it should work.

View solution in original post

6 REPLIES 6

L7 Applicator

I think the - should be replaced with /

 

Syntax should be

CreateCredFile.exe psmapp.cred Password /Username {username} /Password {password} /AppType PSMApp /DPAPIMachineProtection /EntropyFile /ExePath "{capsm.exe file path}"

 

Where did you see your syntax in the docs ?

That's actually what I tried first but it leads to an identical result. Although I have to remove the quotations around the ExePath for it to work with / instead of - . Otherwise the command doesn't have an output at all.

 

This is the CyberArk doc I'm looking at.

 

https://community.cyberark.com/s/article/PSM-How-can-I-create-or-update-the-credential-files-credfil...

 

This is a newly upgraded test environment that's on version 14.6.0.28

L7 Applicator

This just worked for me on a 14.6psm (pcloud ) under an admin powershell

 

.\CreateCredFile.exe psmtest.cred Password /UserName DUMMY /Password DUMMY /AppType PSMAPP /DPAPIMachineProtection /EntropyFile /ExePath "D:\Program Files (x86)\CyberArk\PSM\capsm.exe"

Command ended successfully

​

L4 Transporter

Hi @Conner DeRosier​ ,

 

You can run only the .\CreateCredFile.exe psmapp.cred command on the elevated cmd or powershell. Then it will ask for the username and password, enter the username and pw of the relevant component user.

 

Then will ask for the configuration settings, you can proceed with default selections by pressing the Enter. (in those selections, change the default selections of the Entropy query)

Same result with that unfortunately. Something with the upgrade process must be causing this, I went to my other PSM server running version 14.2 and tried this and it worked fine. Then I upgraded that server and I can no longer generate a cred file. No output at all when I run the command in Powershell, it just completes instantly.

L6 Presenter

Hi @Conner DeRosier​ 

 

There are known issue in CreateCredFile in PSM ver 14.6.

Just replace the exe and dll files from ver 14.2 it should work.

  • 1 accepted solution
  • 1031 Views
  • 6 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!