x509 cert version 3
This commit is contained in:
parent
c4ea32ab1e
commit
4942285f6d
2
main.fnl
2
main.fnl
@ -89,7 +89,7 @@
|
|||||||
(fn new-crt [csr]
|
(fn new-crt [csr]
|
||||||
(let [crt
|
(let [crt
|
||||||
(doto (x509.new)
|
(doto (x509.new)
|
||||||
(: :setVersion 2)
|
(: :setVersion 3)
|
||||||
(: :setSerial (make-serial))
|
(: :setSerial (make-serial))
|
||||||
(: :setIssuer (ca-crt:getSubject))
|
(: :setIssuer (ca-crt:getSubject))
|
||||||
(: :setLifetime (os.time) (+ (* 365 86400) (os.time)))
|
(: :setLifetime (os.time) (+ (* 365 86400) (os.time)))
|
||||||
|
Loading…
Reference in New Issue
Block a user