Skip to Content
avatar image
Former Member

No credentials were supplied Unable to establish the security context target ,SAPCRYPTO

Hi Gurus,

we have .Net application that is connecting to our SAP ABAP system.we have configured SNC with SAPCRYPTOLIB library by exchanging both servers Public key certificate.

Below are the steps i have performed:

1) Installed cryptographic library in .Net application

2) Created an SNC PSE for the .Netapp server

3) created credentials for .Netapp server (as a prerequisite SECUDIR set to the location where PSE is stored) using SAPGENPSE seclogin

4) Exported the .NETapp server’s public-key certificate using the configuration tool’s command export_own_cert.

5)Imported the .NETapp Server’s public-key certificate into the application server’s SNC PSE.

6)Exported the SAP ABAP application server’s public-key certificate using STRUST.

7) Imported the SAP application server’s public-key certificate into the .NETapp Server’s SNC PSE using the configuration tool’s command maintain_pk.

Thus two servers can identify each other using SNC.

We are using below parameters to connect to SAP system from .Net

SAP hostname: /H/router_IP/S/3291/H/SAP_ABAP_IP

Client: 500

sys no: 00

Snc library path: C:/sapcryptolib/sapcrypto.dll

SNC partnername: p:CN=N74, OU=I0022934564, OU=SAP Web AS, O=SAP TrustCommunity, C=DE

while creating connection we are getting below error "ERROR GSS-API(maj): No credentials were supplied .Unable to establish the security context

target p:CN=N74, OU=I0022934564, OU=SAP Web AS, O=SAP TrustCommunity, C=DE "

for troubleshooting steps i have deleted credentials from .net aap server and recreated the credentials but still getting the same issue. Since we are using routerstring , is there anything that we need to look into from router point of veiw.

Please let me know what to look and how to troubleshoot the issue.

Thanks,

kriss

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers