title: Cant login to new CloudFoundry AWS deployment
body: <p>I just installed CloudFoundry on AWS using the docs <a href="http://docs.cloudfoundry.org/deploying/ec2/bootstrap-aws-vpc.html" rel="nofollow">here</a>.  </p>
  
  <p>However, now when i try to login to cloundfoundry i get the following:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>So I did as the error msg told me to:</p>
  
  <pre><code>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.
  </code></pre>
  
  <p>But even then I keep getting this:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>What am i doing wrong?</p>
  
  <p><strong>Update</strong></p>
  
  <p>I tried Scott's method and got this:</p>
  
  <pre><code>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&gt;
  </code></pre>