Re: loading ssl_certificate from a variable

2021-06-23 Thread daveb
Hi Sergey, Thanks for your reply. I tried with and without newlines, but as Sergey Kandaurov noted, the variable was empty in both cases,,so the variable not being set before handshake is the likely cause. Dave Posted at Nginx Forum: https://forum.nginx.org/read.php?2,291902,291909#msg-291909

Re: loading ssl_certificate from a variable

2021-06-23 Thread daveb
Hi Sergey, Thanks, that makes sense. I'll try your suggestions. Dave Posted at Nginx Forum: https://forum.nginx.org/read.php?2,291902,291908#msg-291908 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

loading ssl_certificate from a variable

2021-06-23 Thread daveb
Hello, I'm trying to load the cert/key from a variable, based on the documentation here: https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_certificate Using this configuration: server { listen 19099 ssl; set $mycert "-BEGIN CERTIFICATE- ..."; s