!--a11y-->
Recommended Locations of Files 
Before installing the SAP Cryptographic Library, you should be familiar with the necessary files, where they should be located, and how to set their location so that the system can find them at run-time. For best results, use the locations as indicated in the tables below.
Table 1: Recommended Location for the SAP Cryptographic Library and Configuration Tool SAPGENPSE
|
Component |
Location |
|
Application Server |
Directory specified by the profile parameter DIR_EXECUTABLEWindows NT: <DRIVE>:\usr\sap\<SID>\SYS\exe\runUNIX: /usr/sap/<SID>/SYS/exe/run |
|
AGate |
Windows NT: <DRIVE>:\Program Files\SAP\ITS\2.0\Programs |
|
WGate |
Windows NT: <DRIVE>:\Program Files\SAP\ITS\2.0\Programs |
Table 2: Recommended Location for the License Ticket, the Server's PSE, and its Credentials
|
Component |
Location |
|
Application Server |
Subdirectory sec in the server's DIR_INSTANCE directoryWindows NT: <DRIVE>:\usr\sap\<SID>\<instance>\secUNIX: /usr/sap/<SID>/<instance>/sec |
|
AGate |
Windows NT: <DRIVE>:\Program Files\SAP\ITS\2.0\<SID>\sec |
|
WGate |
Windows NT: <DRIVE>:\Program Files\SAP\ITS\2.0\WGateIIS\sec |
Table 3: Where to Set the Location of the SAP Cryptographic Library
|
Component |
Where to Set |
Value |
|
Application Server |
Profile parameter snc/gssapi_lib |
Windows NT: <DRIVE>:\usr\sap\<SID>\SYS\exe\ UNIX: /usr/sap/<SID>/SYS/exe/run/ |
|
AGate |
Registry key KEY_LOCAL_MACHINE\Software\ |
<DRIVE>:\Program Files\SAP\ITS\ |
|
WGate |
Configuration file wgate.confIn the <global> block:setenv SNC_LIB |
Windows NT: <DRIVE>:\Program Files\SAP\ITS\ |
Table 4: Where to Set the Location of the License Ticket and Credentials (SECUDIR)
|
Component |
Where to Set |
Value |
|
Application Server |
Windows NT: Registry key KEY_LOCAL_MACHINE\Software\ UNIX: Login file for <sid>adm |
Windows NT: <DRIVE>:\usr\sap\<SID>\ UNIX: /usr/sap/<SID>/<instance>/sec |
|
AGate |
Registry key KEY_LOCAL_MACHINE\Software\ |
<DRIVE>:\Program Files\SAP\ITS\ |
|
WGate |
Configuration file wgate.confIn the <global> block:setenv SECUDIR |
Windows NT: <DRIVE>:\Program Files\SAP\ITS\ |

Windows NT
The entries under the component's registry key
\environment define its process-specific environment, which overrides the system-defined environment. We therefore recommend defining SNC_LIB and SECUDIR in the registry instead of as system environment variables, especially if multiple components run on a single host. You can then avoid conflicts if different components require different environments.
When you set
SECUDIR in the registry, the setting does not take effect for the command line activities. Therefore, when using the command line configuration tool sapgenpse, temporarily set SECUDIR using the command line:set SECUDIR=<path>

The following command line sets
SECUDIR temporarily on the application server:set SECUDIR=D:\usr\sap\ABC\DVEBMGS28\sec

As an alternative, you can change to the desired directory and set
SECUDIR as indicated below:cd D:\usr\sap\ABC\DVEBMGS28\sec
set SECUDIR=.
By using this technique, you can avoid problems such as case-sensitivity or shortened directory names in Windows that use the tilde character (
~).To continue with the configuration for a specific server component, see the following topics: