aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLibravatarLibravatar Pascal Fellerich <Pascal.Fellerich@ses.com> 2017-04-03 14:50:30 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2017-04-03 15:52:24 +1000
commit159354a58afda90f213f0858db89dfbd87ae74eb (patch)
tree715a56b84a8ffc3eef660c180067b6284d29b613 /doc
parent12c628ed78384370b9dc30ecb582dfeedd3e8c9a (diff)
downloadluaossl-159354a58afda90f213f0858db89dfbd87ae74eb.tar.gz
luaossl-159354a58afda90f213f0858db89dfbd87ae74eb.tar.bz2
luaossl-159354a58afda90f213f0858db89dfbd87ae74eb.zip
New: pkcs12.parse() added to read a PKCS12 string, and return (pkey,cert,ca)
Diffstat (limited to 'doc')
-rw-r--r--doc/luaossl.tex4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/luaossl.tex b/doc/luaossl.tex
index 86f117d..4f06ecf 100644
--- a/doc/luaossl.tex
+++ b/doc/luaossl.tex
@@ -768,6 +768,10 @@ Add or interpose a store class method. Returns the previous method, if any.
Returns a PKCS \#12 binary encoded string.
+\subsubsection[\fn{pkcs12.parse}]{\fn{pkcs12.parse($bag$[, $passphrase$])}}
+
+Parses a PKCS\#12 bag, presented as a binary string $bag$. The second parameter $passphrase$ is the passphrase required to decrypt the PKCS\#12 bag. The function returns three items; namely the key, certificate and the CA chain, as their respective objects. If an item is absent, it will be substituted with nil.
+
\end{Module}