SpecialistOff.NET / Вопросы / Статьи / Фрагменты кода / Резюме / Метки / Помощь / Файлы

Список вопросов Печать

Как настроить SSL для PostgreSQL?


Метки: postgresql postgresql.conf ssl openssl 

Ответы

RemiZOffAlex  Создано: 2023-09-12 12:58:26.067616  Обновлено: 2023-09-12 12:58:26.067628
openssl req -x509 -nodes -days 365 -newkey rsa:4096 \
    -keyout server.key -out server.crt \
    -subj '/CN=server'

postgresql.conf

ssl = on
ssl_cert_file = 'server.crt'
ssl_key_file = 'server.key'

Возможно будут интересны и другие вопросы