Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssl.set_der_priv_key() makes en error. #132

Closed
wolfkang opened this issue Jul 20, 2017 · 1 comment
Closed

ssl.set_der_priv_key() makes en error. #132

wolfkang opened this issue Jul 20, 2017 · 1 comment

Comments

@wolfkang
Copy link

wolfkang commented Jul 20, 2017

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.

@wolfkang
Copy link
Author

Sorry. I made a mistake.
Please close this issue.

@agentzh agentzh closed this as completed Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants