title: Excel2016: Cannot query PostgresSQL database: Server certificate not accepted
body: <p>I want to import some data to Excel2016 from a postgresSQL table. I have tried it by clicking "new query" and selecting From Database -> From PostgresSQL Database:</p>
  
  <p><a href="https://i.stack.imgur.com/7T6UI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7T6UI.png" alt="enter image description here"></a></p>
  
  <p>But then I receive the following error:</p>
  
  <blockquote>
    <p>Details: "TlsClientStream.ClientAlertException: CertificateUnknown: Server certificate was not accepted. Chain status: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
    . The specified hostname was not present in the certificate.
    at TlsClientStream.TlsClientStream.ParseCertificateMessage(Byte[] buf, Int32&amp; pos)
    at TlsClientStream.TlsClientStream.TraverseHandshakeMessages()
    at TlsClientStream.TlsClientStream.GetInitialHandshakeMessages(Boolean allowApplicationData)
    at TlsClientStream.TlsClientStream.PerformInitialHandshake(String hostName, X509CertificateCollection clientCertificates, RemoteCertificateValidationCallback remoteCertificateValidationCallback, Boolean checkCertificateRevocation)"</p>
  </blockquote>
  
  <p>Any suggestions on how to solve this? Thank you so much in advance!</p>