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:

  • input string or bio pkcs12 content
  • password string for pkcs12

Returns:

    table result contain ‘cert’, ‘pkey’, ‘extracerts’ keys
generated by LDoc 1.5.0 Last updated 2024-05-16 23:31:39