Pretty sure that it's stupid question, but still would be very happy to get answer or some explanation or point to the documentation.
Right now I'm configuring SSL connection to PostgreSQL server with certificates. And as I'm unfortunately not so good in connection and security stuff, I've realised that was completely sure that server should check who is connecting to it server [check] <-- client
, but in reality - a client checks whether it connects to the right server server <-- [check] client
.
Why it's so? Why not vice versa, why not in both directions?
Thank you for any reply!