The SAP ASE key model
SAP ASE protects data with a hierarchy of keys:- Column encryption keys and database encryption keys encrypt the data. SAP ASE stores them in the database, encrypted by the master key.
- Master keys (
sybencrmasterkey) protect the keys in each database. With an external keystore, SAP ASE encrypts each master key with the HSM key. - The HSM key is an AES-256 key that SAP ASE generates on the Excrypt HSM. SAP ASE uses one HSM key per server instance and records its identifier in the
masterdatabase.
How the integration works
- An HSM administrator creates an application partition and an identity for SAP ASE on the Excrypt HSM, and configures TLS on the Excrypt port.
- The SAP ASE host installs the Futurex PKCS #11 library in
$SYBASE/ASE-16_0/liband its configuration file in/etc. - SAP ASE stores the identity password in its HSM credential, so
fxpkcs11.cfgdoesn’t keep it. - When SAP ASE needs the HSM, it loads the library into the server process. The library opens a TLS session to the Excrypt port (TCP 9100 by default) and logs in as the identity.
create encryption key ... on external keystoregenerates the HSM key on the HSM. SAP ASE then encrypts the master keys with it.- After a restart, SAP ASE logs in again with the stored credential and decrypts the master keys through the HSM before it uses an encrypted key.
Why the library version matters
SAP ASE loads the PKCS #11 library into its own server process,dataserver. That process includes SAP CommonCryptoLib, which exposes functions with the same names as OpenSSL functions. A PKCS #11 library that links OpenSSL dynamically resolves those names to the SAP ASE copies and stops the server with a segmentation fault. This integration therefore requires the latest 6.x version of the Futurex PKCS #11 module, which contains OpenSSL internally and exposes none of its symbols. Install Futurex PKCS #11 (FXPKCS11) explains how to check the build.
Configuration tasks
- Check the prerequisites.
- Install the client software:
- Install Futurex PKCS #11 (FXPKCS11) on the SAP ASE host.
- Install Excrypt Manager (if using Windows) or Install Futurex Command Line Interface (FXCLI) on the workstation that you use to configure the HSM.
- Configure the Excrypt HSM: load major keys, create an application partition and identity for SAP ASE, and configure TLS.
- Edit the Futurex PKCS #11 configuration file and verify the connection.
- Configure SAP ASE and create the HSM key.
- Validate the integration.
Out of scope
This guide covers one SAP ASE 16.0 SP04 server on SUSE Linux Enterprise Server 15 or openSUSE Leap 15. The following topics aren’t covered:- Installing SAP ASE.
- Sharing one HSM key between several SAP ASE servers.
- Replication and high-availability clusters.

