cancel
Showing results for 
Search instead for 
Did you mean: 

SNC connection on Linux5.x x86_64

Former Member
0 Kudos

Dear support,

I have extracted the saprouter and sapcrypto files at /sapmnt/saprouter , but now i have to set the environment variables , can u please help me regarding the same ...

I m doing it with (SIDadm)devadm, do i have to edit the .sapenv_devsap(hostname).csh and sh files...

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

I just replied to my old thread on saprouter. Let me know if you need anymore help.

Kind Regards,

Zach

Former Member
0 Kudos

Hi my friend

Are you trying to install saprouter on linux as a standalone instance? If so:

This section describes the necessary steps to download and install the sapcrypto library for use with saprouter. The saprouter must be started with the options described later in this section.

For License conditions of SAP Cryptographic Library please refer to SAP note 597059.

Please note, that ONLY for the connection between saprouters at SAP and the first saprouter on customer sites, certificates signed by a CA provided by SAP are being used. For all other uses of SAPCRYPTOLIB for SNC in backend connections, customers are free to choose any CA of their preference or simply use self signed certificates as proposed by SAP for SNC connections in general.

Downloading necessary software components from SAP Service Marketplace

1. Login to the SAP Service Marketplace with the Service Marketplace USERID which is assigned to your installation.

2. Use the latest SAProuter version, which can be downloaded from SAP Service Marketplace (alias /SWDC).

3. Change to the alias /SAPROUTER-SNCADD. Before you can download the software components two preconditions must be met:

a. You must have been allowed to download the software. This authorization is added as soon as SAP has received a positive statement from the "Bundesausfuhramt" (German Federal Export Office). This procedure is necessary since the software falls under EU regulations.

b. For more information on how to obtain authorization if download is not possible see note 397175.

c. You must accept that you must follow the regulations imposed by the EU on the use and distribution of the cryptographic software components downloaded from the SAP Service Marketplace.

d. The acceptance of the terms and conditions is logged with your USERID and stored for reporting purposes to the "Bundesausfuhramt".

4. Click on u201CDownload Areau201D > u201CSAP Cryptographic Softwareu201D and select the correct sapcrypto library for your SAProuter "<op-sys>". Save the file to the directory where the SAProuter executable is located.

1. You can get the file car.exe/sapcar.exe, which is necessary to unpack the archive from any Installation Kernel CD.

Executing the command car -xvf SAPCRYPTO.CAR will unpack the following files:

[lib]sapcrypto.[dll|so|sl]

sapgenpse[.exe]

ticket

Creating the certificate request

1. As user <snc_adm> set the environment variables SNC_LIB and SECUDIR:

UNIX SECUDIR = <directory_of_saprouter>

SNC_LIB = <path_to_libsecude>/<name_of_sapcrypto_library>

WINDOWS NT, 2000, XP

or higher SECUDIR = <directory_of_saprouter>

SNC_LIB = <drive>:\<path_to_libsecude>\ntia64\sapcrypto.dll or

<drive>:\<path_to_libsecude>\ntintel\sapcrypto.dll or

<drive>:\<path_to_libsecude>\nt-x86_64\sapcrypto.dll

NOTE after configuring the variables in Windows, you have to reboot this server before you continue.

2. Change to the alias SAPROUTER-SNCADD. From the list of SAProuters registered to your installation, choose the relevant u201CDistinguished Nameu201D.

3. Generate the certificate Request with the command:

sapgenpse get_pse -v -r certreq -p local.pse u201C<Distinguished Name>u201D

Example:

sapgenpse get_pse -v -r certreq -p local.pse u201CCN=example, OU=0000123456, OU=SAProuter, O=SAP, C=DEu201D

Alternatively use the two commands:

sapgenpse get_pse -v -noreq -p local.pse u201C<Distinguished Name>u201D

sapgenpse get_pse -v -onlyreq -r certreq -p local.pse

You will be asked twice for a PIN here. Please choose a PIN and document it, you have to enter it identically both times. Then you will have to enter the same PIN every time you want to use this PSE.

4. Display the output file "certreq" and with copy&paste (including the BEGIN and END statement) insert the certificate request into the text area of the same form on the SAP Service Marketplace from which you copied the Distinguished Name.

5. In response you will receive the certificate signed by the CA in the Service Marketplace. Copy&paste the text to a new local file named "srcert", which must be created in the same directory as the sapgenpse executable.

6. With this in turn you can install the certificate in your saprouter by calling:

sapgenpse import_own_cert -c srcert -p local.pse

7. Now you will have to create the credentials for the SAProuter with the same program (if you omit -O <user_for_saprouter>, the credentials are created for the logged in user account).

sapgenpse seclogin -p local.pse -O <user_for _saprouter>

Note: The account of the service user should always be entered in full <domainname>\<username>

8. This will create a file called "cred_v2" in the same directory as "local.pse"

For increased security please check that the file can only be accessed by the user running the SAProuter.

Do not allow any other access (not even from the same group)!

On UNIX this will mean permissions being set to 600 or even 400!

On WINDOWS check that the permissions are granted only to the user the service is running as!

9. Check if the certificate has been imported successfully with the following command:

sapgenpse get_my_name -v -n Issuer

The name of the Issuer should be:

CN=SAProuter CA, OU=SAProuter, O=SAP, C=DE

10. If this is not the case, delete the files "cred_v2"and "local.pse" and start over at Item 3. If the output still does not match please open a customer message in component XX-SER-NET stating the actions you have taken so far and the output of the commands 3.,6.,7. and 9.

Additional actions necessary before you can start SAProuter

1. Check if the environment of the user running SAProuter contains the environment variable SNC_LIB and SECUDIR

UNIX printenv

WINDOWS NT, 2000, XP User environment variable

2. Start the SAProuter with the following command line (to start the SAProuter as a Windows service, please follow the steps described in SAP note 525751):

saprouter -r -S <port> -K "p:<Distingushed Name>"

-K tells the saprouter to start with loading the SNC library

Example

saprouter -r -K "p:CN=example, OU=0000123456, OU=SAProuter, O=SAP, C=DE"

If you omit u2013S <port>, the process is being started on default Port u20183299u2019.

3. The corresponding file "saprouttab" must contain at least the following entries

  1. Example saprouttab

  2. SNC connection to and from SAP

KT "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" 194.39.131.34 *

  1. SNC connection to local system for R/3-Support

  2. R/3 Server: 192.168.1.1

  3. R/3 Instance: 00

KP "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" 192.168.1.1 3200

  1. SNC connection to local WINDOWS system for WTS, if applicable

  2. Windows server: 192.168.1.2

  3. Default WTS port: 3389

KP "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" 192.168.1.2 3389

  1. SNC connection to local UNIX system for SAPtelnet, if applicable

  2. UNIX server: 192.168.1.3

  3. Default Telnet port: 23

KP "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" 192.168.1.3 23

  1. SNC connection to local Portal system for HTTP URL access, if applicable

  2. Portal server: 192.168.1.4

  3. HTTP Port: 50003

KP "p:CN=sapserv2, OU=SAProuter, O=SAP, C=DE" 192.168.1.4 50003

  1. Access from the local Network to SAP

P 192.168.. 194.39.131.34 3299

  1. Deny all other connections

D * * *

Please do the following:

- On your SAProuter, delete your existing PSE file and old certificate

file (certreq,local.pse, cred_v2)

- Go to the http://service.sap.com/saprouter-sncadd

- Click on "Apply Now!"

- Follow the steps detailed in the documentation

- More details can be found on the following page:

http://service.sap.com/saprouter-sncdoc