简体   繁体   English

Npgsql Visual Studio客户端SSL证书

[英]Npgsql Visual Studio Client SSL certificate

There seems to be no option to provide client ssl certificates when creating a new connection for an ADO.NET entity data model on visual studio using Npgsql. 使用Npgsql在Visual Studio上为ADO.NET实体数据模型创建新连接时,似乎没有选择提供客户端ssl证书。 I'm not setting it in code, I'm first trying to create the data entity model so code is useless at this point. 我没有在代码中设置它,而是首先尝试创建数据实体模型,因此代码在这一点上是无用的。 I can ignore the servers ssl certificate but I can't seem to supply one on my own. 我可以忽略服务器的ssl证书,但似乎无法自己提供一个。 Is there a way around this as it is impossible to connect to my postgresql server without an ssl certificate or is there something I'm missing? 有没有办法解决这个问题,因为没有ssl证书就无法连接到我的postgresql服务器,或者我缺少什么?

At this time there isn't an option for supplying a client certificate. 目前没有提供客户证书的选项。

Furthermore, if I recall correctly, the Visual Studio extensibility API (DDEX) only allows that dialog box to construct the connection string, but the certificate is a callback that needs to be programmatically set on the connection, outside of the connection string. 此外,如果我没记错的话,Visual Studio可扩展性API(DDEX)仅允许该对话框构造连接字符串,但是证书是需要在连接字符串之外以编程方式在连接上设置的回调。 In other words, there's a good chance supporting this isn't possible, unless a connection string option is added for providing certificates (all this needs to be verified). 换句话说,除非添加了用于提供证书的连接字符串选项(所有这些都需要验证),否则很有可能无法实现这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Npgsql和SSL证书身份验证时出现SSL错误 - SSL errors when using Npgsql and SSL certificate authentication Visual Studio 2008中的Npgsql设计时间支持 - Npgsql design time support in Visual Studio 2008 Npgsql:无法将Visual Studio 2015连接到PostgreSQL - Npgsql: Unable to connect Visual Studio 2015 to PostgreSQL 当Npgsql团队的最新版本是2.1.0版时,Visual Studio为什么会引用Npgsql版本4.0.0.0? - Why is Visual studio referring to Npgsql, version 4.0.0.0 when the latest version release by the Npgsql team is Version 2.1.0? 通过Npgsql从Visual Studio 2015连接到PostgreSQL 9.5数据库 - connect to PostgreSQL 9.5 database from Visual Studio 2015 via Npgsql 如何使用 ssl 选项确保 npgsql 连接的安全 - How secure npgsql connection with ssl option npgsql使用SSL连接到AWS RDS PostgreSQL - npgsql connecting to AWS RDS PostgreSQL with SSL 使用 PostgreSQL / Npgsql 客户端最大化并发请求处理 - Maximising concurrent request handling with PostgreSQL / Npgsql client 连接需要 laravel 谷歌云 postgres 中的有效客户端证书与 ssl 模式 - connection requires a valid client certificate in laravel google cloud postgres with ssl mode 通过npgsql使用CA证书连接到.NET Core上的DO Postgres群集 - Connecting to a DO Postgres Cluster on .NET Core with a ca certificate via npgsql
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM