From 159354a58afda90f213f0858db89dfbd87ae74eb Mon Sep 17 00:00:00 2001 From: Pascal Fellerich Date: Mon, 3 Apr 2017 14:50:30 +1000 Subject: New: pkcs12.parse() added to read a PKCS12 string, and return (pkey,cert,ca) --- doc/luaossl.tex | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') 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} -- cgit v1.2.3-59-g8ed1b