LogoLogo
  • Welcome
  • Overview
    • Architecture
      • API Server
      • Sizing
    • Dashboard Overview
    • Monitoring Concepts
      • Application Performance Management
        • Availability Monitoring
        • Performance Intelligence
        • Service Level Management
        • Synthetic Transaction Management
        • Alerts Management
        • Reporting & Analytics
      • Infrastructure Monitoring
      • Unified Monitoring
    • Automation Concepts
      • Definition of Terms
      • Infrastructure as Code
        • Project Structure and Organization
        • Setting Up IaC Environment
        • Infrastructure Provisioning
        • Configuration Management
      • SAP Basis Automation
      • Automated Migration
  • User Guide
    • Onboarding
    • Setup
      • Gateway Setup
        • Gateway Network Setup
        • IT-Conductor Gateway Setup on Windows
        • IT-Conductor Gateway Setup on Linux
        • IT-Conductor Gateway Setup on AWS
        • IT-Conductor Gateway Setup on Azure
        • IT-Conductor Gateway Setup for SAP Secure Network Communications (SNC)
      • API Server Setup
      • MSP Tenant Setup
      • SSO Setup
        • Azure ADFS Identity Provider
        • Azure Active Directory (AAD) App Gallery
    • Monitoring
      • General
        • Maintenance Mode
          • Manual Maintenance
          • Scheduled Maintenance
        • Central Syslog Server Monitoring
        • URL Monitoring Locations
      • Cloud Monitoring
        • AWS Monitoring
        • Microsoft Azure Monitoring
      • Database Monitoring
        • IBM DB2 Database Monitoring
        • Microsoft SQL Server Monitoring
        • Oracle Database Monitoring
        • SAP HANA System Monitoring
          • SAP HANA Scale-Out Monitoring
          • SAP HANA Overview Dashboard
          • SAP HANA Alert Management
        • SAP ASE Database Monitoring
        • SAP MaxDB Monitoring
        • HA/DR Monitoring
      • Infrastructure Monitoring
        • File Server Monitoring
          • File Watcher Monitoring
        • Git Server
        • OS Monitoring
          • Unix/Linux System Monitoring
            • Linux Network Interface Monitoring
            • OS Printer Monitoring
          • Windows System Monitoring
            • WinRM Adapter Configuration
              • WinRM Services Configuration
              • Domain User Access
              • WMI Namespace Access
              • Windows Service Configuration
        • VMWare vCenter Monitoring
      • SAP Monitoring
        • Business Process Monitoring
          • Business Process Composer
          • BDoc Monitoring
          • IDoc Monitoring
        • SAP BusinessObjects Monitoring
          • SAP BO Data Services Monitoring
        • SAP Cloud Connector Monitoring
        • SAP Host Agent Monitoring
        • SAP NetWeaver Monitoring
          • SAP ABAP System Monitoring
            • SAP Transports
            • Security Role Import
            • SAP ABAP Overview Dashboard
            • SAP CCMS Alert Monitoring
            • SAP Batch Jobs Monitoring
              • SAP Batch Job Monitoring for CCMS Alerts
              • Advanced SAP Batch Job Monitoring
            • SAP SLT & RFC Connection Monitoring
            • Print Spooler Monitoring
            • Workload Monitoring
              • Transaction Code Monitoring
              • SAP Workload Monitoring
          • SAP J2EE System Monitoring
            • SAP J2EE Monitoring Role
            • Keystore Views and Certificates Monitoring
            • SAP PO Application Monitoring
          • SAP Systems Administrator Panel
        • SAP Web Dispatcher Monitoring
        • LMDB Discovery
        • Team-Based Central SAP Download Manager
    • Automation
      • Migration
        • Oracle to AWS Migration
        • Oracle to ASE Migration
        • SAP on MSSQL to AWS Migration
        • S/4HANA to Cloud Migration
      • E2E System Refresh Automation
        • Frequently Asked Questions
      • Age-based HANA Backup Automation
      • Inbound/Outbound Queue Restart Automation
      • OS File System Cleanup Automation
      • OS Linux Pacemaker Cluster Error Management
      • OS Printer Queue Restart Automation
      • OS Linux Kernel Patching using ChAI
      • OS Linux System Reboot using ChAI
      • SAP Batch Job Restart on Error
      • SAP Kernel Update using ChAI
      • SAP HANA Account Activation using ChAI
      • SAP Transports using ChAI
        • Frequently Asked Questions
      • SAP User Unlock and Password Reset Automation
      • Start/Stop Automation
    • Reporting
      • Available Reports
      • Creating Reports
        • Service Health KPI Report
      • Scheduling Reports
        • Automated HANA Reports
      • Report Elements
      • Archived Alerts Reporting
    • Account Administration
      • Invite Users
      • Create Robot Users
      • Update Linux System Account Password After Expiration
    • Notifications
      • Alerts
      • Threshold Overrides
        • Threshold Overrides Variables
      • Notification Targets
      • Distribution Lists
      • Subscriptions
      • Custom SMTP Notification Providers
      • Integration Providers
        • Derdack EA Integration
        • ilert Integration
        • Jira Service Desk Integration
        • Microsoft Teams Integration
        • PagerDuty Integration
        • Slack Integration
      • On-Call Scheduling
      • Calendar Events
    • Diagnostics
      • Gateway Communication Dump Debug Mode
      • Running IT-Conductor Gateway from CLI
      • SAP CCMS Missing Data
    • IT-Conductor FLUX
    • SID-Refresh
      • Product Overview
      • Getting Started
      • Documentation
      • Release Notes
      • Frequently Asked Questions
      • Troubleshooting Guide
        • Component CRM_MIDDLEWA_CRM - CRM Middleware Configuration
        • Failure to Start the Java-based GUI
        • Inconsistencies found in the table TADIR
        • Java-based GUI Runs with Pixelated Fonts
        • No email message is created after sending an email in SO01
        • Program Run as root
        • SICF Wrong Credentials
        • SU01: Error in user management
        • External Resources
      • Pricing
  • Release Notes
    • Gateway
  • References
    • Open-Source Software
    • Support
Powered by GitBook
On this page
  • Installation Instructions
  • Configure SNC PSE
  1. User Guide
  2. Setup
  3. Gateway Setup

IT-Conductor Gateway Setup for SAP Secure Network Communications (SNC)

PreviousIT-Conductor Gateway Setup on AzureNextAPI Server Setup

Last updated 7 months ago

Secure Network Communication (SNC) is a software layer in the SAP System architecture that provides an interface to an external security product. SAP Systems offers basic security measures like SAP authorization and user authentication based on passwords. With SNC, you can include protection by an external security product. SNC provides application-level, end-to-end security, and secures all communications between two SNC-protected components. SNC protection only applies to connections that use SAP protocols such as dialog, RFC, or CPIC protocols.

Installation Instructions

Set SNC Environment Variables

On Windows:

  1. Open the System Properties dialog and change the directory to "/opt/itconductor/conf".

Note: If SNC is already configured on the machine and the SECUDIR system environment variable is set, skip this step.

  1. Edit file startup. Add SECUDIR lines as shown below:

java_path=./jdk1.8.0_171/jre/bin/java
SECUDIR=/opt/itconductor/conf
export SECUDIR

Note: If SNC is already configured on the machine and SECUDIR uses the value of the existing environment variable.

Install SAP Cryptographic Library

  1. Download the SAP Cryptographic Library ("SAPCRYPTOLIB.SAR" file) from the SAP Service Marketplace.

  1. Extract and copy the library and the command-line tool to a local directory.

Windows
Linux/Unix

Library

sapcrypto.dll

sapcrypto.so

Command Line

sapgenpse.exe

sapgenpse

Note: Make sure the SECUDIR environment variable is set. You can set it for the current session on Linux and make sure the value is the same as in the previous steps.

Configure SNC PSE

  1. Obtain the SNC Distinguished Name (DN) for the IT-Conductor Gateway from your security team. (e.g., CN=IT-Conductor, OU=IT, O=ACME, C=US)

  2. Decide on PSE Name. It could be "itconductor" or any valid name.

  3. Create a local Personal Security Environment (PSE).

  • To create the SNC PSE for IT-Conductor, use the command line tool sapgenpse.

  • Run the following command to create a PSE in the directory corresponding to the SECUDIR environment variable:

sapgenpse get_pse  -p <PSE_Name> <DN>
sapgenpse.exe get_pse -p itconductor "CN=IT-Conductor, OU=IT, O=ACME, C=US"
./sapgenpse get_pse -p itconductor "CN=IT-Conductor, OU=IT, O=ACME, C=US"

Note: The SNC DN "CN=IT-Conductor, OU=IT, O=ACME, C=US" is used for the optional "SNC Client Name" field in the IT-Conductor SAP Account.

  • Exchange public-key certificates by export and import. IT-Conductor and SAP Systems must identify each other to communicate using SNC.

  1. Export the public-key certificate corresponding to the above created local PSE (used by the IT-Conductor) as the following:

sapgenpse export_own_cert -v -o <output_file> -p <PSE_name>
sapgenpse.exe export_own_cert -v -o itconductor_pse.crt -p itconductor
./sapgenpse export_own_cert -v -o itconductor_pse.crt -p itconductor
  1. For each SAP System, IT-Conductor will be connecting using SNC. Repeat the following steps:

a. Import the created client certificate into the SAP System using the trust manager (transaction code STRUST).

b. Export the server certificate from the SAP Server using the trust manager (transaction code STRUST).

Note: If a server certificate does not exist, create a server certificate. For more information, contact your SAP Administrator.

c. Import the SAP Server certificate into the IT-Conductor PSE using the following command:

sapgenpse maintain_pk -v [-a <cert_file>] -p <PSE_name>
sapgenpse.exe maintain_pk -v -a C:\tmp\sap_system_XYZ.crt -p itconductor
./sapgenpse maintain_pk -v -a /tmp/sap_system_XYZ.crt -p itconductor

d. Update SNC name for IT-Conductor SAP accounts using Transaction code SU01.

Make sure to prefix the DN for each SAP Account you plan to use in IT-Conductor with "p:" as p:CN=IT-Conductor, OU=IT, O=ACME, C=US.

  1. Grant SNC permissions to the operating system. The Gateway service running as SAP System requires active credentials at run-time to access its PSE. You can use the seclogin to open the PSE and create the required credentials.

sapgenpse seclogin [-p <PSE_name>] [-O <user_ID>]

The following command line grants SNC permissions for the user SYSTEM to access the file sap_plugin_pse.

The user name is SYSTEM, as the gateway runs under the Local System Account.

sapgenpse.exe seclogin -p itconductor -O SYSTEM

The user name is root, as the gateway runs under the root account.

./sapgenpse seclogin -p itconductor -O root
Figure 1: SAP Cryptographic Library
Figure 2: Extracting SAP Cryptographic Library
Figure 3: Command to Check SECUDIR Set
Figure 4: Creating Personal Security Environment
Figure 5: Exporting Public-Key Certificate
Figure 6: Export Server Certificate
Figure 7: Import SAP Server Certificate
Figure 8: Updating SNC Name
Figure 9: Granting SNC Permissions