diff --git a/remote_cli/client_wrapper.sh b/remote_cli/client_wrapper.sh index 08d0efa..0ed1cb7 100755 --- a/remote_cli/client_wrapper.sh +++ b/remote_cli/client_wrapper.sh @@ -37,7 +37,7 @@ read -d '' EXPORTS << EOF OS_PASSWORD OS_PROJECT_DOMAIN_ID OS_PROJECT_ID OS_REGION_NAME OS_USER_DOMAIN_NAME OS_PROJECT_NAME OS_IDENTITY_API_SERVICE OS_AUTH_URL OS_USERNAME OS_INTERFACE OS_PROJECT_DOMAIN_NAME -OS_AUTH_TYPE +OS_AUTH_TYPE OS_CACERT EOF # We initialize the environment variable list with the OS_ENDPOINT_TYPE set @@ -50,6 +50,11 @@ EOF # to the correct value. COMMAND_ENV="-e OS_ENDPOINT_TYPE=publicURL" +# the REQUESTS_CA_BUNDLE is required to the fm client +if [[ ! -z "$(printenv "OS_CACERT")" ]]; then + COMMAND_ENV="$COMMAND_ENV -e REQUESTS_CA_BUNDLE=$(printenv "OS_CACERT")" +fi + for exp in $EXPORTS; do # If variable is not defined, don't pass it over to the container if [[ ! -z "$(printenv $exp)" ]]; then