/etc/fxpkcs11.cfg. This page covers the settings that SAP ASE needs: the <HSM> section, which defines the connection to the HSM, and the <CONFIG> settings for logging and for the commands that the library sends.
Open /etc/fxpkcs11.cfg in a text editor as root and edit it.
Configure the HSM connection
The following example connects to the HSM by using mutual TLS authentication with a PKCS #12 file:/etc/fxpkcs11.cfg
For server-side authentication, set
<PROD-TLS-ANONYMOUS> to YES and omit the <PROD-TLS-KEY> and <PROD-TLS-KEY-PASS> fields.
/etc/fxpkcs11.cfg contains the PKCS #12 password when you use mutual authentication. Keep the file owned by the SAP ASE account with mode 0600, as set in Install Futurex PKCS #11 (FXPKCS11). The password field also accepts env: followed by a variable name, but then you must set that variable in the environment that starts SAP ASE.Configure the library settings
The<CONFIG> section at the top of the file controls logging and how the library talks to the HSM. Set the following fields and leave the others at their default values:
/etc/fxpkcs11.cfg
To troubleshoot a connection or a failed operation, set
<LOG-MODE> to TRAFFIC, and set <LOG-TRAFFIC> and <LOG-TEMPLATES> to YES. The library then logs each Excrypt command and response, and the attributes of each key that SAP ASE requests. The log masks passwords. After you finish troubleshooting, set <LOG-MODE> back to ERROR.
Verify the connection
Run the tests as the SAP ASE account, so that they use the same file permissions as SAP ASE.1
Run
configTest. It connects to the HSM and prints the slot and token information:Shell
The output includes a Token Info section with the label Futurex and the serial number of the HSM.
2
Run In the main menu, select 2. Login, then 1. Text, and enter the identity password.
PKCS11Manager to test a login with the identity password:Shell
The program reports
Logged in. The configuration file doesn’t contain the password, so this test confirms the password that you store in SAP ASE in the next section.3
If either test fails, enable traffic logging as described in Configure the library settings, run the test again, and check the log file for
ERROR lines. For example, certificate verify failed means that the client doesn’t trust the HSM certificate, and Connection refused means that the address or port is wrong or that a firewall blocks the connection. If the login fails with PIN_INCORRECT and the log shows the HSM response Major key not set, load the major keys on the HSM as described in Load major keys.
