From 7e8861d76e34b635958b64289324bebe37bb22cc Mon Sep 17 00:00:00 2001 From: Pedro Navarro Date: Tue, 13 Jan 2015 12:09:54 +0100 Subject: [PATCH] Add documentation how to setup CLI credentials to use in PKI scenarios. This adds CACERT configuration to the credentials section used in the user guide section and in the CLI keystone section. Change-Id: Iff59b2c27b3704bdc878cc4c406d95db608de1d7 Closes-Bug: #1163938 --- .../section_cli_keystone_credentials.xml | 21 +++++++++++++++++-- doc/common/section_cli_openrc.xml | 10 ++++++++- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/doc/common/section_cli_keystone_credentials.xml b/doc/common/section_cli_keystone_credentials.xml index 0e03ab1469..f162bec1ea 100644 --- a/doc/common/section_cli_keystone_credentials.xml +++ b/doc/common/section_cli_keystone_credentials.xml @@ -72,8 +72,7 @@ Export the URL of the keystone auth server, for - example http://localhost:5000/v2.0', to the + example http://localhost:5000/v2.0, to the OS_AUTH_URL environment variable: $ export OS_AUTH_URL="<authServerURL>" @@ -117,4 +116,22 @@ + + To configure the keystone client to verify the TLS (HTTPS) server certificate + + Define the OS_CACERT environment variable to set the location for the + CA trust store (PEM formatted) for this client: + $ export OS_CACERT=/path/to/cacertFile + + Alternatively, you can specify these parameters + on any keystone client command: + + --os-cacert + OS_CACERT. + CA bundle file to use in verifying a TLS + (HTTPS) server certificate. Defaults to + env[OS_CACERT]. + + + diff --git a/doc/common/section_cli_openrc.xml b/doc/common/section_cli_openrc.xml index 99e98f4bfb..a0dae9b8bb 100644 --- a/doc/common/section_cli_openrc.xml +++ b/doc/common/section_cli_openrc.xml @@ -90,7 +90,8 @@ export OS_TENANT_NAME=projectName export OS_AUTH_URL=https://identityHost:portNumber/v2.0 # The following lines can be omitted export OS_TENANT_ID=tenantIDString -export OS_REGION_NAME=regionName +export OS_REGION_NAME=regionName +export OS_CACERT=/path/to/cacertFile On any shell from which you want to run @@ -115,6 +116,13 @@ export OS_REGION_NAME=regionName parameter with OpenStack client commands instead. + + You must set the OS_CACERT environment variable when + using the https protocol in the OS_AUTH_URL environment setting because + the verification process for the TLS (HTTPS) server certificate uses + the one indicated in the environment. This certificate will be used when + verifying the TLS (HTTPS) server certificate. +
Override environment variable values