Skip to content

Commit

Permalink
fix(tls-alpn-01) set version 3 in certificate generated (#49)
Browse files Browse the repository at this point in the history
Co-authored-by: Nizar Malangadan <nizar-m@users.noreply.github.com>
  • Loading branch information
nizar-m and nizar-m authored Sep 3, 2021
1 parent efb0602 commit 887cad8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/resty/acme/challenge/tls-alpn-01.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ local function serve_challenge_cert(self)
local key = pkey.new()
local cert = x509.new()
cert:set_pubkey(key)
assert(cert:set_version(3))
local ext = assert(extension.new(nid, dgst))
ext:set_critical(true)
cert:add_extension(ext)
Expand Down

0 comments on commit 887cad8

Please sign in to comment.