Enable QualiX Docker Deployment to Work With Trusted Java KeyStore Certificate
This section explains how to configure secure remote connections to devices and VMs from CloudShell sandboxes using Java KeyStore.
To enable Java Keystore connection to sandbox elements:
-
SSH to the docker server.
-
Copy the jks certificate file to the guacamole container, use the
docker cp
command. Place the file in/home/guacamole/tomcat
. -
Enter to the container, "docker exec -ti guacamole bash"
-
Edit the
/home/guacamole/tomcat/server.xml
file.-
Find the following line:
"<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" keystoreFile="/home/guacamole/tomcat/.keystore" keystorePass="123123" clientAuth="false" sslProtocol="TLS" />"
-
Replace highlighted "keystoreFile"
/home/guacamole/tomcat/.keystore
with new file path, and keystorePass="123123" with the proper password. Remove keystorePass="123123" if not used.
-
-
Exit from the container and run:
docker restart guacamole
-
Test the certificate.
-
To save the configuration:
-
Run:
docker commit guacamole guacamole_trust
-
Edit the
docker-compose.yml
file and replace "image: qualihub/qualix_guacamole:${TAG_GUACAMOLE}" with "image: guacamole_trust" -
Run stop/start.sh and keep the configuration.
-