Copy new certificates from the /home/admin folder to current folder
sudo mv /home/admin/gateway-truststore.p12 .
sudo mv /home/admin/gateway-keystore.p12 .
Provide correct ownership to the certificates
sudo chown root:cwp gateway-keystore.p12
sudo chown root:cwp gateway-truststore.p12
navigate to folder /opt/vmware/cwp/appliance-gateway/config
cd /opt/vmware/cwp/appliance-gateway/config
Create a backup of application.yml
sudo cp application.yml application.yml.bkp
Change password details in application.yml
sudo vi application.yml
Press (Esc+ I) to enable insert and change key-store-password and trust-store-password to the password mentioned while creating keystore and truststore (in above steps)
Save changes (Press Esc + and then type wq) .
run command (cat application.yml) to validate details
Output (application.yml file) should be as given below: