pgweb icon indicating copy to clipboard operation
pgweb copied to clipboard

InsecureSkipVerify for self signed certificates

Open weetie opened this issue 5 years ago • 3 comments

In order to use self signed certificates it would be great to set this with a command line argument, for example --ssl-skipverify

weetie avatar Sep 08 '20 14:09 weetie

i dont remember all the options, but you can add ?sslmode=disable to your connection string to skip any verification. is that what you're looking for ?

sosedoff avatar Sep 08 '20 15:09 sosedoff

No, I need the SNI-header of the connection, but I also want to use a self-signed one, lib/pq can do this perfectly, pgweb just needs to pass this parameter

weetie avatar Sep 08 '20 17:09 weetie

ok, i'll take a look. if you have a PR - send it over as well, would be helpful.

sosedoff avatar Sep 08 '20 21:09 sosedoff

If you're referring to InsecureSkipVerify: true option in tlsConfig, then it should be already included in libpq.

sosedoff avatar Dec 07 '22 23:12 sosedoff