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

Re: loading ssl_certificate from a variable

2021-06-23 Thread Sergey A. Osokin
Hi Dave, hope you're doing well these days. On Wed, Jun 23, 2021 at 09:29:46AM -0400, daveb wrote: > 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

Re: loading ssl_certificate from a variable

2021-06-23 Thread Sergey Kandaurov
> On 23 Jun 2021, at 16:29, daveb wrote: > > 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 s

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