sirux88 commented on PR #694:
URL: https://github.com/apache/guacamole-client/pull/694#issuecomment-1742038871

   For anyone stumbling over this:
   
   add the following to `startup.sh` right before `start_guacamole`. The set 
the corresponding environment variables and use your custom keystore file
   
   <details><summary>Details</summary>
   <p>
   
   ```shell
   # Set java truststore and truststore password if specified
   if [ -n "$JAVA_TRUSTSTORE_FILE" ]; then
       
       if [ -z "$JAVA_TRUSTSTORE_PASSWORD" ]; then
           cat <<END
   FATAL: Missing required environment variables
   
-----------------------------------------------------------------------------------
   If using a java truststore file, you must provide each of the
   following environment variables:
   
       JAVA_TRUSTSTORE_FILE        The truststore file to be used.
   
       JAVA_TRUSTSTORE_PASSWORD    The password for the specified truststore 
file
   END
           exit 1;
       fi
   
       CATALINA_OPTS="$CATALINA_OPTS 
-Djavax.net.ssl.trustStore=$JAVA_TRUSTSTORE_FILE"
       CATALINA_OPTS="$CATALINA_OPTS 
-Djavax.net.ssl.trustStorePassword=$JAVA_TRUSTSTORE_PASSWORD"
   
       if [ -n "$JAVA_TRUSTSTORE_TYPE" ]; then
           CATALINA_OPTS="$CATALINA_OPTS 
-Djavax.net.ssl.trustStoreType=$JAVA_TRUSTSTORE_TYPE"
       fi
   
       export CATALINA_OPTS
   fi
   ``` 
   
   </p>
   </details> 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to