【发布时间】:2016-01-19 21:20:59
【问题描述】:
我在连接到需要 SSL 的 AWS Postgres 数据库时收到以下错误。我最近从 npgsql 2.3.2 (这是错误的)升级到 3.0.3 将无法连接。任何建议将不胜感激。
DataSource.Error:TlsClientStream.ClientAlertException: CertificateUnknown:不接受服务器证书。连锁状态: 无法将证书链构建到受信任的根颁发机构。 . 在 TlsClientStream.TlsClientStream.ParseCertificateMessage(Byte[] buf, Int32& pos) 在 TlsClientStream.TlsClientStream.TraverseHandshakeMessages() 在 TlsClientStream.TlsClientStream.GetInitialHandshakeMessages(布尔值 允许应用程序数据)在 TlsClientStream.TlsClientStream.PerformInitialHandshake(字符串 主机名,X509CertificateCollection 客户端证书, 远程证书验证回调 remoteCertificateValidationCallback,布尔值 checkCertificateRevocation) 详细信息: DataSourceKind=PostgreSQL
【问题讨论】:
标签: postgresql ssl npgsql powerbi