Module x509.store

x509.store module to mapping X509_STORE to lua object.

Usage:

    store = require'openssl'.x509.store
    

Functions

new (certs[, crls]) create or generate a new x509_store object.

Class x509_store

x509_store:add_lookup (path[, only='file'[, only='default']]) add lookup path for store
x509_store:depth (depth) set verify depth of certificate chains
x509_store:flags (flags) set verify flags of certificate chains
x509_store:purpose (purpose) set prupose of x509 store
x509_store:trust (trust) set as trust x509 store
x509_store:load ([filepath[, dirpath]]) load certificate from file or dir,not given any paramater will load from defaults path
x509_store:add (...) add x509 certificate or crl to store


Functions

new (certs[, crls])
create or generate a new x509_store object.

Parameters:

  • certs table array of x509 objects, all x509 object will add to store, certs can be empty but not nil
  • crls table array of x509_crl objects, all crl object will add to store (optional)

Returns:

    x509_store object

See also:

Class x509_store

openssl.x509_store object
x509_store:add_lookup (path[, only='file'[, only='default']])
add lookup path for store

Parameters:

  • path string file or dir path to add
  • only format ‘pem’, ‘der’ or ‘default’ (default 'default')
  • only format ‘pem’, ‘der’ or ‘default’ (default 'default')

Returns:

    boolean result
x509_store:depth (depth)
set verify depth of certificate chains

Parameters:

  • depth number

Returns:

    boolean result
x509_store:flags (flags)
set verify flags of certificate chains

Parameters:

  • flags number

Returns:

    boolean result
x509_store:purpose (purpose)
set prupose of x509 store

Parameters:

  • purpose integer

Returns:

    boolean result
x509_store:trust (trust)
set as trust x509 store

Parameters:

  • trust boolean

Returns:

    boolean result
x509_store:load ([filepath[, dirpath]])
load certificate from file or dir,not given any paramater will load from defaults path

Parameters:

Returns:

    boolean result
x509_store:add (...)
add x509 certificate or crl to store

Parameters:

  • ... support x509 object,x509_crl object or array contains x509,x509_crl object

Returns:

    boolean result
generated by LDoc 1.5.0 Last updated 2024-05-16 23:31:39