Errors after changing PTA server hostname
Symptom
Steps to reproduce:
- Changed the hostname of the PTA server, following instructions in the documentation. (https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/PTA/Importing-the-PTA-Disk-Image.htm?tocpath=Installation%7CInstall%20PAM%7CInstall%20PTA%7CPTA%20Server%7C_____3#ModifythePTAserverhostname)
- When logging into PVWA to see Security Events the following error appears: 'The remote name could not be resolved: '<old hostname>'.
- The 'Address' property for the PTA_PAS_Gateway account in the 'SharedAuth_Internal' safe was set to the new host name.
- After that the PTA diagnostic tool (RUN_DIAGNOSTICS) throws an error about missing permissions on the Vault.
- Running ./vaultPermissionsValidation.sh fixes the Vault permissions, but the 'Address' property in the 'SharedAuth_Internal' safe is reverted back to the original host name.
Environment
10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8
PTA
Cause
This behaviour occurs because the vaultPermissionsValidation.sh script picks the PTA hostname from the PTA certificate and uses it to update the Address property in the PTA_PAS_Gateway account
Resolution
When changing the hostname of the PTA server, the subject name of the PTA certificate must also be changed to reflect the new name.
If the PTA certificate is self-signed, then this can be rectified by running the certificateConfiguration.sh script in UTILITYDIR (/opt/tomcat/utility) after changing the hostname
If the PTA certificate is an organisation certificate generated from the customer's CA, then this will need to be regenerated from the customer's CA with the subject name matching the new PTA hostname.
After the new certificate has been applied to the PTA server, running the vaultPermissionsValidation.sh script will automatically update the Address property in the PTA_PAS_Gateway account