Juju bootstrap lxd lxd-local ERROR failed to bootstrap model: subprocess encountered error code 1

When running
juju bootstrap lxd lxd-local to set up juju I got the following error:

ERROR new environ: Get https://10.215.60.1:8443/1.0: Unable to connect to: 10.215.60.1:8443                          
ERROR failed to bootstrap model: subprocess encountered error code 1`

A quick curl https://10.215.60.1:8443 showed the problem:

curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

With the -k command (ignoring the lack of SSL cert) you can get a successful HTTP GET:

{"type":"sync","status":"Success","status_code":200,"operation":"","error_code":0,"error":"","metadata":["/1.0"]}

Seems pretty clear that the problem has to do with the HTTP server at that address no providing an SSL cert.