Postgres & Keys -> .key has group or world access; file must have permissions u=rw (0600) or less if owned by the current user

Hi all

how do I set the permission for the SSL-Certificate-Files correctly?

I upload the files together with the code. Once on the server the connection with my postgres server does not work any more.

Running the script local is no problem.

On the server I get this Log:
connection to server at "vxxx.net" (85.217.161.23), port 5432 failed: private key file "xx.key" has group or world access; file must have permissions u=rw (0600) or less if owned by the current user, or permissions u=rw,g=r (0640) or less if owned by root

If someone solved this problem, please provide the link.

Or any ideas; how to solve this...

My thanks

Daniel