2

我试图将PostgreSQL数据库连接到Power BI桌面。将AWS PostgreSQL连接到Power BI Desktop:指定的主机名未出现在证书中

enter image description here

我从https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem下载证书并安装在我的机器。我得到相同的错误如下

Details: "An error happened while reading data from the provider: 'Npgsql.Tls.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 Npgsql.Tls.TlsClientStream.SendAlertFatal(AlertDescription description, String message) 
    at Npgsql.Tls.TlsClientStream.ParseCertificateMessage(Byte[] buf, Int32& pos) 
    at Npgsql.Tls.TlsClientStream.TraverseHandshakeMessages() 
    at Npgsql.Tls.TlsClientStream.<GetInitialHandshakeMessages>d__43.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) 
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
    at Npgsql.Tls.TlsClientStream.<PerformInitialHandshake>d__72.MoveNext()'" 

我的Npgsql版本是3.2.2。

证书已成功导入。

MMC

我真的不知道为什么它仍然显示错误。有人可以帮助我吗?

+0

你可以连接PostgreSQL客户端吗?没有PowerBI。 – user5226582

+0

@ user5226582是的,我用它与PgAdmin3 –

回答

0

我终于可以通过ODBC驱动程序访问数据库了。

enter image description here

Get Data列表,选择ODBC选择Others。添加驱动程序(如果需要)并设置数据源。输入您的凭证并连接。

不错!