- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
08-23-2022 02:13 PM
I have an internal CA certificate to integrate Remote Access with an on-prem CyberArk PSM server. The Remote Access server is Ubuntu 18.04.
How do I update that certificate?
I have collected and reproduced the correct certificates and key as they were named and formatted during the install. Is it enough to replace the current certs and key with new and then restart?
This is the documentation for install, but it does not cover certificate update.
Install the HTML5 Gateway for PSM (side-by-side) | CyberArk Docs
08-24-2022 07:18 AM
Afaik the "trusted CA" cert files are only copied into the keystores inside the container at the first container startup. So delete the container and redeploy it with the exact same "docker run ..." command as before (assuming the cert and key files are all named identically). This will kick all users out of their session on that PSMGW.
08-24-2022 05:50 AM
I recommend that you read the following doc https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/12.6/en/Content/PAS%20INST/Install_PSM_HTML5_Docker.htm#LaunchthePSMHTML5gatewayDockercontainer
There is plenty of certificate information there that will hopefully help you.
08-24-2022 06:06 AM
Yes, I've read all of that, but it's not clear how to change existing certificates in an existing HTML5 gateway. I could "try things" and figure it out, but that increases the likelihood of downtime and additional emergency work. Not ideal to treat a production system that way. Considering we had to pay CyberArk professional services to install this and even that did not go smoothly, it seems prudent to take caution.
This is why I am looking for guidance from someone who has already done this and can point the way.
08-24-2022 07:18 AM
Afaik the "trusted CA" cert files are only copied into the keystores inside the container at the first container startup. So delete the container and redeploy it with the exact same "docker run ..." command as before (assuming the cert and key files are all named identically). This will kick all users out of their session on that PSMGW.
08-24-2022 07:39 AM
Thanks Bernard. I appreciate it.
08-26-2022 09:53 AM
Just to close this out and document what happens, I created a list of updated certificates with identical filenames in the same location on the connector server. I then found the last functional command that added the existing html5gw docker container. I think this is key because with professional services, we had run this command multiple times followed by failure, stopping, purging the container, editing configs certs, etc.
Before I ran the known good command, I tried to stop the existing html5gw (sudo docker container stop [partial containerID]) and run the command. The command failed because the existing container (though stopped) is already using the existing name. So I used "sudo docker container rename [existing name] [new name]" to rename the existing container. Being able to get back to the pre-existing functional container is key. Having the old and functional container stick around becomes a VM snapshot that can be restored if my upgrade goes sideways. I then ran the command and it ran quickly and started. It took about 2-3 minutes for the startup to be complete to the point where I could use the html5 gateway.
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!

