Module pkcs12
pkcs12 module to create and parse PKCS#12(PFX) files.
Usage:
pkcs12 = require('openssl').pkcs12
Functions
export (cert, pkey, password[, friendlyname=nil[, extracerts[, keytype]]]) | create and export pkcs12 data |
read (input, password) | parse pkcs12 data as lua table |
Functions
- export (cert, pkey, password[, friendlyname=nil[, extracerts[, keytype]]])
-
create and export pkcs12 data
Parameters:
- cert x509
- pkey evp_pkey
- password string
- friendlyname string (default nil)
- extracerts table or stak_of_x509 (optional)
- keytype boolean flag to private key used by MSIE, true for KEY_SIG, or KEY_EX (optional)
Returns:
-
string
data
- read (input, password)
-
parse pkcs12 data as lua table
Parameters:
Returns:
-
table
result contain ‘cert’, ‘pkey’, ‘extracerts’ keys