Acces to certificate error

If you have found any entries about the error concerning access to certificate, perform the following actions:

sudo chown postgres /etc/ssl/private/ssl-cert-snakeoil.key
sudo chown postgres /etc/ssl/certs/ssl-cert-snakeoil.pem
sudo chmod 600 /etc/ssl/private/ssl-cert-snakeoil.key
sudo chmod 600 /etc/ssl/certs/ssl-cert-snakeoil.pem

This should also be checked when having error on access to 5432 socket.