Skip to content
Permalink
Browse files

fix(client) catch pkey new error in order_certificate

  • Loading branch information
fffonion committed Dec 26, 2019
1 parent b1257de commit 393a573b3cb7d3c931f3860c4d99e1e5714edb67
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/resty/acme/client.lua
@@ -418,7 +418,10 @@ function _M:order_certificate(domain_key, ...)
return nil, "failed to wait for order status, got " .. (order_status.status or "nil")
end

local domain_pkey = openssl.pkey.new(domain_key)
local domain_pkey, err = openssl.pkey.new(domain_key)
if err then
return nil, "failed to load domain pkey: " .. err
end

local csr, err = util.create_csr(domain_pkey, ...)
if err then

0 comments on commit 393a573

Please sign in to comment.
You can’t perform that action at this time.