crypto.setEngine()

crypto.setEngine(engine[, flags])

Load and set the engine for some or all OpenSSL functions (selected by flags).

engine could be either an id or a path to the engine's shared library.

The optional flags argument uses ENGINE_METHOD_ALL by default. The flags is a bit field taking one of or a mix of the following flags (defined in the constants module):

  • ENGINE_METHOD_RSA
  • ENGINE_METHOD_DSA
  • ENGINE_METHOD_DH
  • ENGINE_METHOD_RAND
  • ENGINE_METHOD_ECDH
  • ENGINE_METHOD_ECDSA
  • ENGINE_METHOD_CIPHERS
  • ENGINE_METHOD_DIGESTS
  • ENGINE_METHOD_STORE
  • ENGINE_METHOD_PKEY_METHS
  • ENGINE_METHOD_PKEY_ASN1_METHS
  • ENGINE_METHOD_ALL
  • ENGINE_METHOD_NONE
doc_Nodejs
2016-04-30 04:38:33
Comments
Leave a Comment

Please login to continue.