Skip to main content
To segregate applications on the HSM, create an application partition for SAP ASE. Application partitions segment the permissions and keys between applications on an HSM. SAP ASE generates one AES-256 key and uses it to encrypt and decrypt its master keys. The partition needs only the commands for those operations and the commands that the Futurex PKCS #11 library uses to log in and read the key table. Choose one of the following methods to create an application partition:

Excrypt Manager

Perform the following steps on Excrypt Manager to create an application partition:
1
Go to the Application Partitions menu and select [ Add ].
2
In the Basic Information tab, configure all of the fields as follows:
OptionRequired configuration
Role NameSpecify a name for the application partition, such as SAP_ASE.
Logins RequiredSet to 1.
If the HSM is in FIPS mode, set Logins Required to 2. The Futurex PKCS #11 library then logs in two identities. For details, see the next section.
PortsSet to Prod.
Connection SourcesSet to Ethernet.
Managed RolesLeave blank, because you specify the exact Permissions, Key Slots, and Commands for this application partition.
Use Dual FactorSet to Never.
Upgrade PermissionsLeave unchecked.
3
In the Permissions tab, select the following key permissions:
PermissionDescription
KeysTop-level permission
AuthorizedAllows for keys that require login
4
In the Key Slots tab, create a range of key slots that doesn’t overlap another application partition. SAP ASE needs one slot for its HSM key per server instance; a range of 100 slots leaves room for more instances.
The library stores a new key in the first free slot that the logged-in session can use. If the Anonymous role on the HSM also has a key slot range, the session can use that range too, so the HSM key can land outside the application partition range. To keep SAP ASE keys inside the partition range, remove the key slot range from the Anonymous role.
5
Enable the following commands under Commands:PKCS #11 communication commands:
CommandDescription
ECHOCommunication Test/Retrieve Version
HASHRetrieve device serial
GPKMRetrieve key table information
GPKSGeneral-purpose key settings get/change
Key operations commands:
CommandDescription
GPGSGeneral-purpose generate symmetric key
Data encryption commands:
CommandDescription
GPSEGeneral-purpose symmetric encrypt (used when GPED-EXPAND is YES)
GPSDGeneral-purpose symmetric decrypt (used when GPED-EXPAND is YES)
GPEDGeneral-purpose symmetric encrypt and decrypt (used when GPED-EXPAND is NO)

FXCLI

Run the following role FXCLI commands to create the application partition and enable the commands that SAP ASE uses. Replace [role_name] with the name of the application partition and [first_slot] and [last_slot] with a key slot range that doesn’t overlap another application partition.
FXCLI
FXCLI
If the HSM is in FIPS mode, also set the number of logins that the application partition requires to 2. Set it with role modify, because role add ignores the --logins option for application partitions:
FXCLI
To verify the application partition, run role get --name [role_name] and confirm the loginsRequired value, key slot range, and permissions.
FXCLI doesn’t set the Ports or Connection Sources of an application partition. A new application partition uses the Ethernet and Serial connection sources. To restrict it to Ethernet only, use Excrypt Manager.
This guide sets <GPED-EXPAND> to YES in fxpkcs11.cfg, so the library encrypts and decrypts with GPSE and GPSD. GPED is needed only if you set <GPED-EXPAND> to NO.