OSS SNC Certificate SapRouter-Renew Install Docu
OSS SNC Certificate SapRouter-Renew Install Docu
OSS SNC Certificate SapRouter-Renew Install Docu
*************************
* OSS SNC Certificate SapRouter-Renew Install Docu *
*************************
--------Renew/Install New SNC Certificate in SapRouter
SapRouter must be started, check: D:\usr\sap\saprouter > start: saprouter -r (no switches shows help:
saprouter)
(stop: saprouter -s & check: saprouter -l )
SNC must be running: SNC runs as a service on SM1, see it under Services.msc named SapRouter
- If this is not running, OSS Connection will not work
- see Note: OSS SNC Installation For SAP SAPRouter as NT Service_525751.pdf
Check Certificate Before Starting
D:\usr\sap\saprouter > sapgenpse get_my_name
Pre-Requisties
Stop SapRouter: saprouter -s
Stop SNC Service: Services > saprouter > Stop
OSS Message Instructions
You cannot backup your certificate. You will need to generate a new
certificate with the the directions below:
Please do the following:
In the SNC SAProuter folder,
1. Delete the files, Cred_V2, local.pse and certreq from the SNC
SAProuter folder.
(I backed them up by adding _old to all 3 files, in case I had to
restore them: Cred_V2_old, local.pse_old and certreq_old)
2. Follow the instructions from step 3, under the section
"Creating the certificate request" in the SNC SAProuter setup
4. With this in turn you can install the certificate in your saprouter
by calling
sapgenpse import_own_cert -c srcert -p local.pse
D:\usr\sap\saprouter >
sapgenpse import_own_cert -c srcert -p local.pse
Please enter pin: <standard password>
Result message: success
5. Now you will have to create the credentials for the SAProuter with
the same program (if you omit -O <user>, the credentials are
created for the logged in user account)
sapgenpse seclogin -p local.pse -O <user_for _saprouter>
This will create a file called cred_v2 in the same directory
sapgenpse seclogin -p local.pse
Once step 6 is done and the output of the issuer is defined as above,
then the certificate import is correct. You can then go ahead and start
the SNC saprouter and test the connection to SAPnet R/3 Frontend again.
Post Install
On this posting, Ill try to explain about how to install and configure SAProuter and also how to
set your SAProuter to match with Secure Network Communication (SNC) just SAP want to if
they have to support you.
The first thing you need to do, is to send a customer message to SAP
Support (component XX-SER-NET-OSS-NEW) and tell them to register the
hostname and IP of your new SAProuter.
You have to register it with a official IP address (no internal IPs
allowed), but its allowed to use NAT in the firewall/router.
After youve received a confirmation from SAP that your SAProuter has
been registered, you are ready to configure your SAProuter.
If your SAProuter directory is C:\usr\sap\saprouter, these are the steps
to follow.
Note: You will be asked for a PIN code. Just pick your own 4 numbers, but
youll have to use the same PIN every time youre asked to enter one.
1. Set 2 environment variables: SECUDIR and SNC_LIB according to the
guide youve downloaded.
2. Download the SAP Crypto Library and unpack it into
C:\usr\sap\saprouter
3. To generate a certificate request, run the command:
sapgenpse get_pse -v -r C:\usr\sap\saprouter\certreq -p
C:\usr\sap\saprouter\local.pse
4. Then you have to follow the guide and request the certificate from
http://service.sap.com/tcs -> Download Area -> SAProuter Certificate
5. Create a file C:\usr\sap\saprouter\srcert and copy the requested
certificate into this file. The run the command:
sapgenpse import_own_cert -c C:\usr\sap\saprouter\srcert -p
C:\usr\sap\saprouter\local.pse
6. To generate credentials for the user thats running the SAProuter
service, run command:
sapgenpse seclogin -p C:\usr\sap\saprouter\local.pse -O
(this will create the file cred_v2)
7. Check the configuration by running command:
sapgenpse get_my_name -v -n Issuer
(This should always give the answer CN=SAProuter CA, OU=SAProuter,
O=SAP, C=DE)
8. Create SAProuter service on Windows with the command:
sc.exe create SAPRouter binPath= "D:\usr\sap\saprouter\saprouter.exe service -r -S 3299 -W
60000 -R D:\usr\sap\saprouter\saprouttab -K "p:CN=ETGPSOLM, OU=0001171499,
OU=SAProuter, O=SAP, C=DE"
1. You want your users access SAP server out of LAN without having VPN .
4. I recommend you to create an exclusive local user "sncadm" and set password never
expires.
(in my case i use to change pwd for sidadm and this caused issues in starting router)
5. Logon with user for saprouter and set following user environmental variables.
SECUDIR = <dir_saprouter>
SNC_LIB = <dir_saprouter>\nt-x86_x64\sapcrypto.dll
D:\usr\sap\saprouter\nt-x86_x64\sapcrypto.dll)
(ex:
CONFIGURATION:
1. Generating a new certificate request.
a. Goto SAProuter Certificates --> click Apply Now and copy your distinguished name and
click next
b. Open cmd as administrator and navigate to <path_saprouter>\nt-x86_x64\ and
execute,
sapgenpse get_pse -v -r certreq -p local.pse "<Distinguished Name>"
example: sapgenpse get_pse -v -r certreq -p local.pse "CN=example, OU=00123456,
OU=SAProuter, O=SAP, C=DE"
c. It will ask to enter and re-enter a PIN. This is used to access the local.pse, so better
note it down.
b. A file "local.pse" will be created in the saprouter directory. (Ex:
D:\usr\sap\saprouter\local.pse)
d. A file "certreq" will under <dir_saprouter>\nt-x86_x64 (Ex:
D:\usr\sap\saprouter\certreq)
2. Aquiring certificate signed by CA.
a. Open the "certreq" file with notepad and copy the text (including BEGIN and END)
b. Paste it on the above opened certificate page and click next.
c. You would get a certificate (series of jumbled characters) copy this (including BEGIN
and END)
d. create a new file "routcert.txt" under <dir_saprouter>\nt-x86_x64 and paste the above
certificate text.
3. Importing router certificate.
a. Open cmd as administrator and navigate to <dir_saprouter>\nt-x86_x64\ and execute,
sapgenpse import_own_cert -c routcert.txt -p local.pse
Running the above command would ask you to enter PIN, enter the one you have
given on step 1c
4. Authorizing windows user for accessing SAPRouter.
Execute the following cmd with the saprouter user (sncadm).
sapgenpse seclogin -p local.pse -O <exclusive_user_SAProuter>