cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Router configuration issue (sapcrypto.dll not loaded)

Former Member
0 Kudos

Dear All

i am facing problem during the configuration of SAProuter on windows server 2003 X86_64 (64)bit operating system.

i did all the basic steps properly (twice on two different machines with same config) like

1.Downloading and installing the proper software(router/SAPcryptoLib X_64bit)

2.Defining the environment variable for SECU_DIR and SNC_LIB for the user.

3.Proper execution of sapgenpse  commands  for cert/srcert certificates

4.Proper distinguish name.

How ever when i am running the command to start SAProuter i am facing the following error (dev_rout).

*** ERROR => DlLoadLib: LoadLibrary(C:\usr\sap\saprouter\nt-x86_64\sapcrypto.dll) Error 193 [dlnt.c       237]

*** ERROR => SncPDLInit(): DlLoadLib("C:\usr\sap\saprouter\nt-x86_64\sapcrypto.dll")=DLENOACCESS

[sncxxdl.0340]*** ERROR => SncPDLInit()==SNCERR_INIT, Adapter (#0) C:\usr\sap\saprouter\nt-x86_64\sapcrypto.dll not loaded

[sncxxdl.0604]<<- SncInit()==SNCERR_INIT

         sec_avail = "false"

*** ERROR => NiSncInit: SncInit failed (rc=-1) [nisnc.c      647]

*** ERROR => main: NiSncInit failed (rc=-17) [nirout.cpp   1219]

Please Help

Regards

M Rafique Ali

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear All,

thanks for all your concern,

in spite of doing the all the well known methods and suggestions to configure router still facing the issue,

but.....

the issue was solved by copying 32 bit sapcrypto.dll into the SNC_LIB directory.

now the SAP router is working fine.

i am still in a confusion how a X86_32 bit dll was  done the trick for X86_64 bit machine.

i think its not a perfect solution,but never the less it is working for me.

Thanks and Regards

M Rafique

Answers (3)

Answers (3)

Reagan
Advisor
Advisor
0 Kudos

Hello

Follow these links and you will be able to set it up properly.

https://service.sap.com/saprouter

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

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

Cheers

RB

Former Member
0 Kudos

Hi Rafique,

From the error message it is clear that the router cannot load/find the library. You may have either installed a different version of the library or the library path is wrong. Please make sure you reboot your system after changing the environment variable.

From the dev_rout file you have attached, it seems that the router is expecting a 32 bit version of the library. "PC with Windows NT (mt,ascii,SAP_UC/size_t/void* = 8/32/32)"

Please also check :

http://scn.sap.com/thread/1074384

It looks like setting the SECUDIR to saprouter\nt-x86_64 may solve the issue.

Regards,

Shahab

former_member185239
Active Contributor
0 Kudos

Hi Rafiq,

Few things to check,

1. Check the system information of your server.(nt or amd)(32 or 64)

Then download the correct sapcryptolib.sar file.

Maintain the below two parameters in environment variable

SECUDIR = <path of Saprouter folder>

SNC_LIB = <path of Saprouter>/sapcrypto.dll>

With Regards

Ashutosh chaturvedi

Former Member
0 Kudos

Hi Rafique,

Could you please check the followings:

- have you imported the generated certificate to SAProuter.

- Check if the files and folders have the right permission for the user

- Check if the Cryptolibrary is installed correctly

- Check your environment variables (specially SN_LIB) it may be set incorrectly. Check the path. see also: http://scn.sap.com/thread/1490167

Regards,

Shahab

Former Member
0 Kudos

Dear Shahab thanks for the quick reply,

as i wrote earlier i have properly done all the basic downloads and configuration (saprouterSAPCRYPTOLIB_34-10010888.SAR/saprouter_314-20010469.sar).

and all the sapgenpse commands are ok(succeeded) loke

1.sapgenpse get_pse -v -r certreq -p local.pse "CN=saprouter2

2.sapgenpse import_own_cert -c srcert -p local.pse

3.sapgenpse seclogin -p local.pse -O administrator

4.sapgenpse get_my_name -v -n Issuer

all the above commands are ok,

my environmental variables are

1.SECUDIR=C:\usr\sap\saprouter

2.SNC_LIB= C:\usr\sap\saprouter\nt-x86_64\sapcrypto.dll

output of sapgenpse command to check environment variable.

C:\usr\sap\saprouter>sapgenpse

  Usage: sapgenpse [-h] <command> [-h] [sub-options] ...

  Usage: sapgenpse -g S:\ome\where\gostplugin.dll <command> [sub-options] ...

  Using SNC_LIB definition from environment to load SAPCRYPTOLIB

  SNC_LIB="C:\usr\sap\saprouter\nt-x86_64\sapcrypto.dll"

  Platform:   Microsoft Win64 (XP-64/W2K3) AMD64/x86_64/x64   (ntamd64)

  Versions:   SAPGENPSE    =  1.5.24  pl21  (Apr  2 2011)

              SAPCRYPTOLIB =  5.5.5.C pl34  (Mar  1 2012) MT-safe

  Environment variable $SECUDIR is defined:

  DLL search path defined by environment variable

  PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\usr\sap\saprou

ter\nt-x86_64\sapcrypto.dll

when i am running the following command to start sap router it is not working properly

saprouter -r -S 3299 -V 3 -K "p:CN=saprouter2, OU=0000746967,OU=SAProuter,O=SAP, C=DE"

i am getting the error.

please  find the attached error log file dev_route.txt

Message was edited by: Rafique Ali

Former Member
0 Kudos

Hi,

Please copy the contents in the folder C:\usr\sap\saprouter\nt-x86_64\  to C:\usr\sap\saprouter\

Restart the SAPROUTER and check whether it works..

Set the following environment variables

SECUDIR = <path of Saprouter folder>

SNC_LIB = <path of Saprouter>/sapcrypto.dll>

Thanks and Regards,

Vimal