diff --git a/lib/resty/openssl/pkey.lua b/lib/resty/openssl/pkey.lua index 4f45f975..dc0426fa 100644 --- a/lib/resty/openssl/pkey.lua +++ b/lib/resty/openssl/pkey.lua @@ -868,7 +868,7 @@ function _M:verify(signature, digest, md_alg, padding, opts) end if code == 0 then - return false, nil + return false, format_error("pkey:verify") elseif code == 1 then return true, nil end