We have configured AS2 from SAP B2B Add-on as part of our SAP PI 7.31 Dual Stack installation. I was able to successfully send AS2 messages to the partner by configuring the appropriate Receiver Channel.
We have a CA Signed certificate which is uploaded in a KeyStore View in NWA. The partner's public certificates are also uploaded on NWA TrustedCA Keystore and also the KeyStore where we store AS2 certificates (some partners use the same certificate, others have different certificates for SSL Handshake and Data Encryption/Signature Authentication).
However, after configuring the appropriate Sender Channel and the associated Configuration Scenario objects, when the partner sends data to us, they are receiving a 401 Unauthorized Error. I have instructed them to send the data to https://server:443/AS2/B2B. I have sent them our public certificate and everything is still failing on their end.
Any help will be appreciated.
I was just going through the documentation and found below notes regarding authorization.
The UME action AS2Deliverage must be assigned to the J2EE user created for the purpose of sending messages to the adapter’s public HTTP URL. The authentication credentials are provided to the partner in order to call the adapter using HTTP(s)
May be you can check if the user has any roles assigned which has the action "AS2Deliverage "