Cant get vsphere to work

Was able to fire up a controller but when trying to fire up an app I get this error.

172.31.1.11 has a self-signed certificate. Is there a way to exclude SSL verification?

Juju does support adding a CA certificate to the cloud metadata it stores about each cloud that it can bootstrap to. All locally defined clouds are stored in ~/.local/share/juju/clouds.yaml.
If you look there, there should be an entry like

clouds:
  mycloud:
    type: vsphere
    auth-types: [userpass]
    endpoint: https://xxxxxxx
    ca-certificates:
    - |
      -----BEGIN CERTIFICATE-----
      MIIE6DCCAtCgAwIBAgIQGncDt7wdwyH2LTA1ai5z3jANBgkqhkiG9w0BAQsFADAN
      ....
      dO07QhGm3GjU2p6r
      -----END CERTIFICATE-----

Using add-cloud I think you are prompted for this certificate, but if not, you could paste it into the above yaml file and bootstrap again and see if that helps.