Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAP GWM Provider Configuration - Connection Error

Does Anyone have Ideas how to connec to the on premise odata service through GWMß

My Configuration as of now is:

Configuration of the Provider System through the gwm Page (https://xxxx.cloudapp.net)

Provider Name: test

Host: <my reverseproxy url xxx.domain.com>

Port: <my reverse proxy ssl port>

Client: 123

Base Url: /sap/opu/odata/sap/

System Type: Gateway

Authentication Type: Basic

User: <my sap system user>

Password:<my sap system password>

Use SSL: checked

SSL-Certificate: <my ssl certificate of the reverse proxy server>

When i test the connection i get the following error in the log:

Connection check for provider test failed. Message: Bad Key. Exception: System.Security.Cryptography.CryptographicException: Bad Key. at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.RSACryptoServiceProvider.DecryptKey(SafeKeyHandle pKeyContext, Byte[] pbEncryptedKey, Int32 cbEncryptedKey, Boolean fOAEP, ObjectHandleOnStack ohRetDecryptedKey) at System.Security.Cryptography.RSACryptoServiceProvider.Decrypt(Byte[] rgb, Boolean fOAEP) at SAP.GWPAM.AZURE.Common.UtilityRef.ControllerHelper.AssymetricDecrypt(Byte[] encData, X509Certificate2 cert) in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.Common\UtilityRef\ControllerHelper.cs:line 106 at SAP.GWPAM.AZURE.Common.UtilityRef.ControllerHelper.DecryptData(String encData, String certificateName) in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.Common\UtilityRef\ControllerHelper.cs:line 142 at SAP.GWPAM.AZURE.ODataConnector.SSO.BasicGWProvider.GetPassword() in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.ODataConnector\SSO\BasicGWProvider.cs:line 178 at SAP.GWPAM.AZURE.ODataConnector.SSO.BasicGWProvider.GetAuthenticationData(HttpRequestMessage& request) in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.ODataConnector\SSO\BasicGWProvider.cs:line 106 at SAP.GWPAM.AZURE.ODataConnector.SSO.BasicGWProvider.AddProviderCredientials(HttpRequestMessage& request, HttpResponseMessage lastFailedResponse) in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.ODataConnector\SSO\BasicGWProvider.cs:line 33 at SAP.GWPAM.AZURE.ODataConnector.Handlers.RequestSenderHandler.GetResponse(HttpRequestMessage request, ProviderSettings providerSettings, Boolean useCache) in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.ODataConnector\Handlers\RequestSenderHandler.cs:line 48 at SAP.GWPAM.AZURE.ConfigWeb.Utility.ConnectionCheckUtility.CheckConnection(ProviderSettings providerSetting) in d:\Builds\3\GWM_AZURE\1.0_SP4_REL\Sources\SAP.GWPAM.AZURE.ConfigWeb\Utility\ConnectionCheckUtility.cs:line 55


When trying to connect to the odata service through the gwm

(https://xxx.cloudapp.net:8081/test/Z_Service


i get a 401:


401 - Unauthorized: Access is denied due to invalid credentials.

You do not have permission to view this directory or page using the credentials that you supplied.

Anyone helpful ideas as to what exactly is the meaning of the bad key message and how to solve it?

Thank you and regards

Matthias

Former Member
Not what you were looking for? View more on this topic or Ask a question