Hi


I found a document bug about client authentication using TLS certificate. When 
clientcert authentication is enabled in pg_hba.conf, libpq does not verify that 
the common name in certificate matches database username like it is described 
in the documentation before allowing client connection.

Instead, when sslmode is set to “verify-full”, libpq will verify if the server 
host name matches the common name in client certificate. When sslmode is set to 
“verify-ca”, libpq will verify that the client is trustworthy by checking the 
certificate trust chain up to the root certificate and it does not verify 
server hostname and certificate common name match in this case.



The attached patch corrects the clientcert authentication description in the 
documentation



cheers













Cary Huang

-------------

HighGo Software Inc. (Canada)

mailto:cary.hu...@highgo.ca

http://www.highgo.ca

Attachment: client_cert_auth.patch
Description: Binary data

Reply via email to