aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2019-06-12 13:21:40 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2019-06-12 13:21:40 +1000
commit7faf03f7efeffc6a97eaf351930cdc3806c52270 (patch)
tree30fce6ecd311ce43270dc3899569abf2decec656 /doc
parentfeb050aeec4301f6febd576bf8321bd81eaf5e42 (diff)
parent1e91b246c8696f9b51c1d64a60218fac2c016dda (diff)
downloadluaossl-7faf03f7efeffc6a97eaf351930cdc3806c52270.tar.gz
luaossl-7faf03f7efeffc6a97eaf351930cdc3806c52270.tar.bz2
luaossl-7faf03f7efeffc6a97eaf351930cdc3806c52270.zip
Merge branch 'x509-verify'
Diffstat (limited to 'doc')
-rw-r--r--doc/luaossl.pdfbin313323 -> 174953 bytes
-rw-r--r--doc/luaossl.tex13
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/luaossl.pdf b/doc/luaossl.pdf
index 1f9d84d..4442b34 100644
--- a/doc/luaossl.pdf
+++ b/doc/luaossl.pdf
Binary files differ
diff --git a/doc/luaossl.tex b/doc/luaossl.tex
index 8561957..b874e89 100644
--- a/doc/luaossl.tex
+++ b/doc/luaossl.tex
@@ -597,6 +597,19 @@ Returns the type of signature used to sign the certificate as a string. e.g. ``R
Signs and updates the instance certificate using the \module{openssl.pkey} $key$. $type$ is an optional string describing the digest type. See \module{pkey:sign}, regarding which types of digests are valid. If $type$ is omitted than a default type is used---``sha1'' for RSA keys, ``dss1'' for DSA keys, and ``ecdsa-with-SHA1'' for EC keys.
+\subsubsection[\fn{x509:verify}]{\fn{x509:verify\{ $\ldots$ \}}}
+
+Verifies the certificate against to the specified parameters.
+
+\begin{ctabular}{ c | c | p{9cm}}
+field & type & description\\\hline
+.store & \module{openssl.x509.store} & The certificate store to verify against, any custom settings from the store will be used. \\
+.chain & \module{openssl.x509.chain} & A collection of additional certificates to consider \\
+.params & \module{openssl.x509.verify\_param} & The verification parameters to use; overrides any parameters in $.store$
+\end{ctabular}
+
+Returns two values. The first is a boolean value for whether the specified certificate $crt$ was verified. If true, the second value is a \module{openssl.x509.chain} object validation chain. If false, the second value is a string describing why verification failed.
+
\subsubsection[\fn{x509:text}]{\fn{x509:text()}}
Returns a human-readable textual representation of the X.509 certificate.