Why do I get a certificate error trying to setup a Ubuntu Cloud?


Why do I get a certificate error trying to setup a Ubuntu Cloud?

I’m trying to install an Ubuntu cloud on my home network – I’ve been following this guide.

When I arrived at STEP 6: Install an image from the store PART 3: Click on the Store tab I get the following error message on the page:

Error 60: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

There seems to be something wrong with the certificate but I have no idea how to solve this, help is really appreciated.

1 Answer

Quick and insecure fixWARNING: the change disables certificate validation. Use at your own risk!!

Until PycURL is fixed you can edit file /usr/lib/python2.7/dist-packages/imagestore/lib/fetch.pyon fetch method after the line 142add

curl.setopt(pycurl.SSL_VERIFYPEER, 0)curl.setopt(pycurl.SSL_VERIFYHOST, 0)

Restart the image-store-proxy

And also update godaddy certificates for wget and alike:

sudo wget -P /usr/local/share/ca-certificates/ –no-check-certificate https://certs.godaddy.com/repository/gd-class2-root.crt https://certs.godaddy.com/repository/gd_intermediate.crt https://certs.godaddy.com/repository/gd_cross_intermediate.crtsudo update-ca-certificates

Leave a Reply

Your email address will not be published. Required fields are marked *