简体   繁体   中英

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. 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. 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?

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. 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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM