Query regarding certificate authentication in postgres - Mailing list pgsql-general

From Ashok Patil
Subject Query regarding certificate authentication in postgres
Date
Msg-id CALdbwZzGYgHOj_=hfTdoUa7PggDE2oi3xMxjaoqn7JGfVqOjeQ@mail.gmail.com
Whole thread Raw
List pgsql-general
Hello Sir/Madam,

I have one query regarding client/server authentication using certificate in postgres.

I am able to establish client server connection with OpenSSL certificate creation.

We can create server and root certificates using OpenSSL and keep them in data directory.
We need to update field in postgresql.conf (example ssl = ON, ssl_cert_file = "Server.crt", ssl_key_file = "Server.key", also for client we need to create certificate and key and need to update it in user directory.

My query is, instead of using a physical certificate from a particular directory, can we use a certificate from the Windows certificate store for both server and client? Server will refer to the installed certificate from the server windows certificate store and the client will use the client windows certificate store. 

Please let me know if such a thing we can use. if yes , please share some references.

Thanks and Regards,
Ashok

pgsql-general by date:

Previous
From: Erik Nelson
Date:
Subject: How to set default privilege for new users to have no access to other databases?
Next
From: Adrian Klaver
Date:
Subject: Re: PgSQL 15.3: Execution plan not using index as expected