Download and Install SAP Common Crypto Library

Download SAP Common Crypto Library from SAP Software Downloads and install it locally to encrypt communication between your SAP HANA client and the SAP HANA server.

Prerequisites

The SAP Common Crypto Library must be installed on the host where the SAP HANA client will be installed or already is installed.

To install SAP Common Crypto Library, use the SAPCAR utility, which is included in your SAP HANA client installation.

Context

You must use SAP Common Crypto Library if you are using client-side data encryption or LDAP authentication.

Procedure

  1. Download SAP Common Crypto Library from SAP Software Downloads.
    1. Navigate to the SAP ONE Support LaunchpadInformation published on SAP site.
    2. Click Software Downloads.
    3. Click INSTALLATIONS & UPGRADES.
    4. Open Start of the navigation path By Alphabetical Index (A-Z) Next navigation step CEnd of the navigation path.
    5. Click Start of the navigation pathSAP CRYPTOGRAPHIC SOFTWARE Next navigation step SAPCRYPTOLIBEnd of the navigation path.
    6. Click Start of the navigation pathCOMMONCRYPTOLIB 8 Next navigation step DOWNLOADSEnd of the navigation path.
    7. Select your operating system from the dropdown menu, and download the desired .SAR file.
  2. Install SAP Common Crypto Library on your local computer.
    1. Using the SAPCAR utility, navigate to the directory where you downloaded the SAP Common Crypto Library and run the following command to unpack the .SAR file:
      sapcar -xvf <sar-filename>.SAR
    2. Set the SECUDIR environment variable to the directory where the extracted files are located and ensure that the following criteria are met:

      To use the SAP CommonCryptoLib (CCL), you must define several environment variables. For example, <SECUDIR>, <PATH>, and <LD_LIBRARY_PATH>. Instead of configuring these environment variables individually, you can run the scripts below with the SAP HANA client installer to set these variables automatically. Use hdbclienv.sh for Linux, UNIX, and macOS and hdbclienv.bat for Microsoft Windows.

      Operating System

      Method

      Command

      Linux/UNIX/macOS

      bash

      Set the environment variables temporarily in a bash shell by running the following command:

      . /usr/sap/hdbclient/hdbclienv.sh

      To set the environment variables for your operating system on every login, source the hdbclienv.sh environment script in your login script (~/.bashrc).

      Microsoft Windows

      Command prompt

      Set the environment variables by using the hdbclienv.bat batch file by running the following command:

      "C:\Program Files\SAP\hdbclient\hdbclienv"

      To set the environment variables permanently for all users, use the Microsoft = Windows Environment Variables system setting. If you are using client communication encryption, then the %SECUDIR% environment variable must contain the location of sapcli.pse.

      For Linux, UNIX, and macOS, in addition to the root environment script, two helper scripts are also provided to launch the hdbuserstore or hdbsql utilities with the environment script already sourced and SAP CommonCryptoLib already configured:

      • /scripts/hdbuserstore

      • /scripts/hdbsql

Results

You have successfully downloaded and installed the SAP Common Crypto Library.