openssl req -new -text -out server.req openssl rsa -in privkey.pem -out server.key rm privkey.pem openssl req -x509 -in server.req -text -key server.key -out server.crt chmod og-rwx server.key
sourcedeveloper.postgresql.org/pgdocs/postgres/ssl-tcp.html