| От | Andreas Karlsson |
|---|---|
| Тема | [PATCH] Reload SSL certificates on SIGHUP |
| Дата | |
| Msg-id | 556A6E8A.9030400@proxel.se обсуждение |
| Ответы |
Re: [PATCH] Reload SSL certificates on SIGHUP
|
| Список | pgsql-hackers |
Hi, I have written a patch which makes it possible to change SSL certificates (and other SSL parameters, including the CRL) without restarting PostgreSQL. In fact this patch also makes it possible to turn on or off ssl entirely without restart. It does so by initializing a new SSL context when the postmaster receives a SIGHUP, and if the initialization succeeded the old context is replaced by the new. There was some previous discussion[1] on the mailing list about what the proper context should be for the SSL parameters, but as far as I can tell the discussion never reached a conclusion. I have changed the SSL GUCs to PGC_SIGUP since I felt that was the closest to the truth, but it is not a perfect fit (the backends wont reload the SSL context). Should we add a new context for the SSL GUCs? Notes 1. http://www.postgresql.org/message-id/flat/CAAS3tyLJcv-m0CqfMrrxUjwa9_FKscKuAKT9_L41wNuJZywM2Q@mail.gmail.com#CAAS3tyLJcv-m0CqfMrrxUjwa9_FKscKuAKT9_L41wNuJZywM2Q@mail.gmail.com Andreas
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера