PKCS11SIGN.CNF(5) | File Formats Manual | PKCS11SIGN.CNF(5) |
pkcs11sign.cnf - Configuration for OpenSSL PKCS#11 sign provider module
The pkcs11-sign-provider implements the OpenSSL 3.0 provider interface and provides cryptographic operation on asymmetric key material, available in PKCS#11 infrastructure (e.g. opencryptoki). For more information see pkcs11sign(7).
The pkcs11-sign-provider can be configured application-specific or system-wide. In both cases, the configuration file need to define and reference a section for the pkcs11-sign-provider, following the OpenSSL configuration syntax (config(5)).
The pkcs11-sign-provider section specifies the shared library of the provider itself (mandatory), the shared library of the Cryptoki implementation (mandatory) and initialization parameters for the Cryptoki implementation (optional). It is also possible to specify a forward provider. If no forward provider is specified, the OpenSSL built-in default-provider is selected.
The pkcs11-sign-provider must also be preferred in the algorithm-properties, so that all requests are directed to the pkcs11-sign-provider. This can either be done in the application or in the configuration file (recommended).
A provider section in the OpenSSL configuration define generic parameters, as well as provider-specific parameters. Each provider section can be references in a providers sections. The pkcs11-sign-provider requires at least the generic provider section parameters module, identity, and activate. For more details about the generic provider parameters, see config(5).
The pkcs11-sign-provider defines the provider specific parameters pkcs11sign-module-path, pkcs11sign-module-init-args, and pkcs11sign-forward.
This section configures the algorithm-properties for the EVP API. The pkcs11-sign-provider should be set as the preferred provider for all EVP algorithms by adding the expression "?provider=pkcs11sign" to the default_properties.
This example shows a pkcs11-sign-provider configuration for
opencryptoki.
openssl_conf = openssl_init [openssl_init] providers = provider_sect alg_section = evp_properties [provider_sect] default = default_sect base = base_sect pkcs11sign = pkcs11sign_sect [evp_properties] default_properties = ?provider=pkcs11sign [pkcs11sign_sect] module = /path/to/pkcs11sign.so identity = pkcs11sign pkcs11sign-module-path = /path/to/libopencryptoki.so.0 pkcs11sign-forward = provider=default activate = 1
The pkcs11-sign-provider allows to generate a detailed log-file. The log-file generation can be enabled by setting the environment variable PKCS11SIGN_DEBUG and PKCS11SIGN_DEBUG_LEVEL. The internal logging is disabled, until the environment variables are set.
config(5), pkcs11sign(7)
Copyright © International Business Machines Corp. 2022, 2023
2023-05-17 | pkcs11sign.cnf |