blob: f45ad7e4f936b2db53915fda37ab3b8d66269ad7 (
plain) (
tree)
|
|
#!/usr/bin/env lua
require"regress".export".*"
local st = store.new()
local ca_key, ca_crt = genkey()
st:add(ca_crt)
local key, crt = genkey("RSA", ca_key, ca_crt)
local ok, proof_or_reason = st:verify(crt)
check(ok, "%s", proof_or_reason)
--for _,crt in pairs(proof_or_reason) do
-- print(crt:text())
--end
say"OK"
|