If not, then the problem might also be that the certificate for the server you are connecting to doesn't match the fully qualified name that your machine is using for it (i.e. if you have an machine named moose internally but it also goes by DB1, and the certificate is signed as DB1, not moose) then the connection will be rejected due to that.