Issue connecting to apps.ionic.io

When I:

ionic resources --icon --debug
Ionic icon resources generator
uploading icon.png…
Unable to generate images due to an error Failed to upload source image: requires network connection

When I:

ionic login
Error logging in: Error: getaddrinfo ENOTFOUND apps.ionic.io apps.ionic.io:443

When I curl https://apps.ionic.io:
curl -v https://apps.ionic.io

  • Rebuilt URL to: https://apps.ionic.io/
  • Trying 104.20.6.16…
  • TCP_NODELAY set
  • Connected to apps.ionic.io (104.20.6.16) port 443 (#0)
  • SSL certificate problem: Couldn’t understand the server certificate format
  • Curl_http_done: called premature == 1
  • Closing connection 0
    curl: (35) SSL certificate problem: Couldn’t understand the server certificate format

I installed the latest update to xcode, and started a new shell tab and the problem went away.