credhub
` CLI is installed on the Ops Manager VM. A quick way to check is to SSH to the Ops Manager VM and run “credhub --version
”
ssh ubuntu@<opsman-url-or-IP>
BOSH Commandline Credentials
" from the Ops Manager UI > Ops Manager/Director tile > Credentials tab > BOSH Commandline Credentialscredential
".bosh
" from that value.export BOSH_CLIENT=ops_manager BOSH_CLIENT_SECRET=<redacted> BOSH_CA_CERT=/var/tempest/workspaces/default/root_ca_certificate BOSH_ENVIRONMENT=<redacted>
export CREDHUB_CLIENT=$BOSH_CLIENT CREDHUB_SECRET=$BOSH_CLIENT_SECRET
credhub api -s $BOSH_ENVIRONMENT:8844 --ca-cert $BOSH_CA_CERT credhub login
Note: In modern CredHub versions, you can start using CredHub directly without logging in since CREDHUB_* environment variables are present.
ssh ubuntu@<opsman-url-or-IP>
BOSH Commandline Credentials
" from the Ops Manager UI > Ops Manager/Director tile > Credentials tab > BOSH Commandline Credentials.credential
".bosh
" from that value.
export BOSH_CLIENT=ops_manager BOSH_CLIENT_SECRET=<redacted> BOSH_CA_CERT=/var/tempest/workspaces/default/root_ca_certificate BOSH_ENVIRONMENT=<redacted>
Credhub Client Credentials
" for TAS. Got to Ops Manager UI > PAS/ERT tile > Credentials tab > Credhub Admin Client Client Credentials, and copy "identity
" and "password
" in a notepad for the next steps.CREDHUB_CLIENT
and CREDHUB_SECRET.
Use values of "identity
" and "password
" obtained from Step 3 as client name and secret.
export CREDHUB_CLIENT= <identity> CREDHUB_SECRET= <password>
/etc/hosts
file to add the following 2 entries:
sudo -i
vim /etc/hosts
<IP-of-Credhub-VM-in-cf-deployment> credhub.service.cf.internal
<IP-of-UAA-VM-in-cf-deployment> uaa.service.cf.internal
b. Save the changes.
credhub api -s <IP-of-credhub-VM-in-cf-deployment>:8844 --skip-tls-validation
OR
credhub api -s credhub.service.cf.internal:8844 --ca-cert $BOSH_CA_CERT
credhub login