I just installed CloudFoundry on AWS using the docs here.
However, now when i try to login to cloundfoundry i get the following:
root@cf-installer:~/releases# cf login -a api.mydomain.com -u admin -p the_admin_pw
API endpoint: api.mydomain.com
FAILED
Invalid SSL Cert for api.mydomain.com
TIP: Use 'cf api --skip-ssl-validation' to continue with an insecure API endpoint
So I did as the error msg told me to:
root@cf-installer:~/releases# cf api --skip-ssl-validation https://api.mydomain.com
Setting api endpoint to https://api.mydomain.com...
OK
API endpoint: https://api.mydomain.com (API version: 2.4.0)
Not logged in. Use 'cf login' to log in.
But even then I keep getting this:
root@cf-installer:~/releases# cf login -a api.mydomain.com -u admin -p the_admin_pw
API endpoint: api.mydomain.com
FAILED
Invalid SSL Cert for api.mydomain.com
TIP: Use 'cf api --skip-ssl-validation' to continue with an insecure API endpoint
What am i doing wrong?
Update
I tried Scott's method and got this:
root@cf-installer:~# cf login --skip-ssl-validation -a https://api.mydomain.com -u admin -p the_admin_pw
API endpoint: https://api.mydomain.com
Authenticating...
Server error, status code: 500, error code: , message:
Password>
Either do:
$ cf api --skip-ssl-validation https://api.mydomain.com
$ cf login -u admin -p the_admin_pw
or
$ cf login --skip-ssl-validation -a https://api.mydomain.com -u admin -p the_admin_pw