cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP 401 Unauthorized- SOAP Sender Certificate based authentication

satsunros
Explorer
0 Kudos

Dear Forum,

We are developing an interface with 'SOAP Certificate Based authentication' request call from Partner system to PI via SOAP Sender call

Presently we are unable to call with 'Certificate Based authentication' from Partner system (SOAP Sender)---à PI system

Interface flow: Partner(SOAP Sender)--->PI --->SAP

Error description: Http/1.1 401 Unauthorized

Certificate Authentication Configurations which we followed

1)We have followed standard client defined document of for ‘certificate Based authentication’ and values are defined as below in the system

--- Rule1.AttributeName = CN

--- Rule1.filterSubject = CN=TAM ***T **PKI EFBBDE3FA1FA23D8,DC=**g

--- Rule1.getUserFrom = subjectName
--- Rule1.UserMappingMode = VirtualUser

--- Rule1.VirtualUserDefaultRoles = SAP_XI_APPL_SERV_USER

XPI inspector log 1: ( Please refer attached Screen shot1 )

screenshot1.jpg

Comment: ‘Certificate user mapping defined’ in the system

2)We also followed customized values as defined below

--- Rule1.getUserFrom = wholeCert

XPI inspector log 2: (Please refer attached Screen shot 3 )

screenshot3.jpg



3)
Referred SAP Blog: https://blogs.sap.com/2013/09/20/sender-soap-adapter-https-with-client-authentication/

  • --- followed the steps as it is defined in the blog

Action points which we performed

  • 1)Performed a certificate based authentication test from Partner system with above both configuration values - status is Http/1.1 401 Unauthorized
  • 2)Performed a test from SOAP UI with certificate based authentication with above both configuration values - status is Http/1.1 401 Unauthorized

Any suggestions/comments on this. It is really helpful if you have some suggestion on this situation.

Thank you very much.

with Best Regards,
Sateesh N

Accepted Solutions (0)

Answers (3)

Answers (3)

srini_reddy
Participant
0 Kudos

Can you capture the complete SOAP/HTTP request in XPI Inspector and see if the certificate is coming to PI system or not?

How the client system is sending the certificate? Is it adding it directly in header or client needs to request for certificate?

Another place you may need to check is at the load balancer. Sometime SSL connections will be decrypted at the load balancer and client certificates gets dropped at that time.

ssl_client_cert -- This is the header parameter authentication module expects to have the certificate.

satsunros
Explorer
0 Kudos

Dear Forum,

Any suggestions on this problem?

With Best Regards,
Sateesh N

PavanKumar
Active Contributor
0 Kudos

what is the version of PI is it dual or single stack??

satsunros
Explorer
0 Kudos

Hi Pavan,

It is a single Stack and PO 7.5 SP13
With Best Regards,
Sateesh