[英]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.