SSL in Postgres 9.5
SSL in Postgres 9.5
ssl
-----
off
(1 row)
postgres=# SELECT name, setting, source FROM pg_settings WHERE name = 'ssl';
name | setting | source
------+---------+---------
ssl | off | default
(1 row)
postgres=# \q
postgres@solaris11a:~$ whoami
postgres
postgres@solaris11a:~$ openssl req -new -text -out server.req
Generating a 2048 bit RSA private key
..........+++
....................................+++
writing new private key to 'privkey.pem'
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) []:US
State or Province Name (full name) []:Virginia
Locality Name (eg, city) []:Reston
Organization Name (eg, company) []:FAA
Organizational Unit Name (eg, section) []:IT
Common Name (e.g. server FQDN or YOUR name) []:faa.gov
Email Address []:
cd /usr/local/pgsql/data/
ls -l
vi postgresql.conf
ssl = on
ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL'
ssl_cert_file = 'server.crt'
ssl_key_file = 'server.key'
password_encryption = on
Verify: