We are using a self-signed certs on our server. In order for the server to trust your own CA, you need to add the certs to the CA certificates store. This link describes most ways of the ways to do this on Linux systems. Basically, you need to add the cert to /usr/local/share/ca-certifcates and run update-ca-certifcates on Ubuntu systems.
Hope this helps.