CPM - StoreKeyinCache and OverrideOnInvalidKeyInCache Does Not Work For Unix Via SSH Keys Platform
Symptom
For the Unix via SSH Keys Platform, the temporary override of the Fingerprint explained in the document link below is not supported:
https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/Plugins/Configure-SSH-features.htm?Highlight=OverrideOnInvalidKeyInCache#Temporarilyoverrideatargetsfingerprint
Parameter Location:
PVWA=> Administration => Platform Settings => Target Platform => Automatic Password Management => Additional Policy Settings > Parameters=> Right click on parameters => Add parameter
Parameter:
StoreKeyInCache
Parameter Location:
1. Login to PVWA Platform Management =>Edit the platform in question => Expand UI & Workflows => Expand Properties => Optional => Right click on "Optional" > Add property => OverrideOnInvalidKeyInCache
2. Login to PrivateArk Client as vault Admin => File => Server File Categories =New:
Name: OverrideOnInvalidKeyInCache
Type: List
Add Yes and No
Environment
Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
Central Policy Manager (CPM) | Unix via SSH Keys Platform
Cause
The OOTB 'Unix SSH Keys' platform uses the PMUnixSSHKeys.dll, it does not support the StoreKeyInCache / OverrideOnInvalidKeyInCache parameter.
Resolution
In this case, for Unix Via SSH Keys platform, you will have to clear the target's fingerprint that is stored in the CPM server. Remove the corresponding key(identified using ssh-ed25519@IP) from the below registry path in the CPM server.
- If CPM runs under Local System account:
HKEY_USERS\.Default\Software\CyberArk\Expect.NET\HostKeys
- If CPM runs on a specific account (you must log in with the same account): HKEY_CURRENT_USER\Software\CyberArk\Expect.NET\HostKeys