Skip to main content
Install Futurex PKCS #11 (FXPKCS11) on the SAP ASE host. SAP ASE loads the module from $SYBASE/ASE-16_0/lib, and the module reads /etc/fxpkcs11.cfg. This guide uses /opt/sap as $SYBASE and sybase as the account that runs SAP ASE. Replace them if your installation differs. Run the commands on this page as root, unless a step says otherwise.

Extract the endpoint bundle

1
Copy the endpoint ZIP file to the SAP ASE host, and then extract it to a root-only staging directory:
Shell
The ZIP file contains the following files:

Install the library for SAP ASE

SAP ASE loads the PKCS #11 library that its HSM credential names from the $SYBASE/ASE-16_0/lib directory.
1
Copy the library to the SAP ASE library directory, and then give the SAP ASE account ownership of it:
Shell
ls -l /opt/sap/ASE-16_0/lib/libfxpkcs11.so shows the library owned by sybase and executable.

Place the configuration and TLS files

The Futurex PKCS #11 library reads /etc/fxpkcs11.cfg by default. The configuration refers to the TLS files by relative path, so the TLS files must be in the same directory as the configuration.
1
Copy the configuration and the TLS files to /etc:
Shell
2
Give the SAP ASE account ownership of the files. The configuration and the PKCS #12 file contain secrets, so only the owner can read them:
Shell
3
Create a log directory that the SAP ASE account can write:
Shell
4
Open /etc/fxpkcs11.cfg in a text editor, and then set the log file location:
/etc/fxpkcs11.cfg

Test the connection to CryptoHub

1
Copy the test programs to a directory that the SAP ASE account can use:
Shell
2
As the SAP ASE account, run the configuration test:
Shell
The Token Info section shows Label: Futurex and a Serial Number that matches your CryptoHub. The log file shows Established connection to HSM.
If the test fails, see Troubleshooting.

Move the PIN to SAP ASE

The <CRYPTO-OPR-PASS> value in fxpkcs11.cfg is the PIN for the endpoint identity. SAP ASE gives this PIN to the library through its HSM credential, so the configuration file does not need to keep it.
1
Copy the <CRYPTO-OPR-PASS> value from /etc/fxpkcs11.cfg, and then store it in a secure location. This guide calls this value the CryptoHub endpoint PIN.
2
Comment out the <CRYPTO-OPR-PASS> line:
/etc/fxpkcs11.cfg
3
As the SAP ASE account, run PKCS11Manager, log in with the CryptoHub endpoint PIN, and generate random data:
Shell
The login succeeds and the random data request returns a result. The library no longer logs in by itself, so the PIN you enter is the control.
4
Delete the staging directory:
Shell
Keep the endpoint ZIP in protected storage or delete it, according to your credential-handling policy.