You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`
-- set key
local der_pkey, err = ssl.priv_key_pem_to_der(pkey_data)
if not der_pkey then
ngx.log(ngx.ERR, "failed to convert private key ", "from PEM to DER: ", err)
return ngx.exit(ngx.ERROR)
end
local ok, err = ssl.set_der_priv_key(der_pkey)
if not ok then
ngx.log(ngx.ERR, "failed to set DER private key: ", err)
return ngx.exit(ngx.ERROR)
end
`
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi,
when I call ssl.set_der_priv_key(), I got an error like this.
2017/07/20 11:27:00 [error] 12735#12735: *4 failed to load external Lua file "/danbi/nginx/conf.d/route.lua": /danbi/nginx/conf.d/route.lua:45: unfinished string near '")', client: 124.53.127.11, server: _, request: "GET / HTTP/1.1", host: "speakingsolution.com"
ssl.set_priv_key(), too.
I'm using openresty/1.11.2.4.
My code here.
`
-- set key
local der_pkey, err = ssl.priv_key_pem_to_der(pkey_data)
if not der_pkey then
ngx.log(ngx.ERR, "failed to convert private key ", "from PEM to DER: ", err)
return ngx.exit(ngx.ERROR)
end
local ok, err = ssl.set_der_priv_key(der_pkey)
if not ok then
ngx.log(ngx.ERR, "failed to set DER private key: ", err)
return ngx.exit(ngx.ERROR)
end
`
Thanks in advance.
The text was updated successfully, but these errors were encountered: