postgresql - 将 AWS PostgreSQL 连接到 Power BI Desktop :The specified hostname was not present in the certificate

标签 postgresql amazon-web-services ssl powerbi powerbi-datasource

我正在尝试将我的 PostgreSQL 数据库连接到我的 Power BI 桌面。

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

我真的不知道为什么它仍然显示错误。有人可以帮我解决这个问题吗?

最佳答案

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

enter image description here

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

干得好!

关于postgresql - 将 AWS PostgreSQL 连接到 Power BI Desktop :The specified hostname was not present in the certificate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43515767/

相关文章:

mysql - 如何以容错方式连接时间戳列

python - 无法为 Django 站点创建 super 用户 - PostgreSQL 数据库 - fatal error : password authentication

java - 连接表上的 jooq 别名

c# - 安全地将敏感信息发送到 RESTful 服务

java - 从 SQL 查询中获取表值

java - S3上传String的用户元数据列表

ios - 递归上传目录 iOS AWS S3

java - 从 EC2 访问 SQS - 实例配置文件与角色

.htaccess - 简化重定向域到非 www SSL

eclipse - 将我现有的 Spring APP 移动到 HTTPS