我正在尝试将我的MS-excel连接到postgresql 9.6
首先,它给我错误,它没有所需的库。 所以我下载了ngpsql。
之后,它给了我错误,它不能接受服务器证书。
DataSource.Error: 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.
所以,我执行了以下步骤。
1 – 获得postgres服务器证书( /etc/ssl/certs/ssl-cert-snakeoil.pem
)并将其转换为.crt文件。
2 – 将其复制到我的窗口,并使用此页面在我的窗口上安装证书
http://www.cs.virginia.edu/~gsw2c/GridToolsDir/Documentation/ImportTrustedCertificates.htm
3 – 它说import是成功的。
但是我仍然得到同样的错误。 它说服务器名称在证书中没有提到。
如何制作正确的服务器证书?