nerves_key_pkcs11 v0.1.1 NervesKey.PKCS11
This module contains helper methods for loading and using the PKCS #11 module for NervesKey in Elixir. You don't need to use these methods to use the shared library.
Link to this section Summary
Types
The location of the NervesKey
Link to this section Types
Link to this type
location()
location()
location() :: {:i2c, 0..15}
location() :: {:i2c, 0..15}
The location of the NervesKey
Currently only I2C bus locations are supported.
Link to this section Functions
Link to this function
load_engine()
load_engine()
load_engine() :: {:ok, :crypto.engine_ref()} | {:error, any()}
load_engine() :: {:ok, :crypto.engine_ref()} | {:error, any()}
Load the OpenSSL engine
Link to this function
private_key(engine, location)
private_key(engine, location)
private_key(:crypto.engine_ref(), location()) :: map()
private_key(:crypto.engine_ref(), location()) :: map()
Return the key map for passing a private key to ssl_opts
This method creates the key map that the :crypto
library can
use to properly route private key operations to the PKCS #11
shared library.