When I try to make a callout to SAP PI Endpoint- https 121.XX.XX.111:8082/XISOAPAdapter/MessageServlet.......
, below error is thrown.
Error: System.CalloutException: IO Exception: java.security.cert.CertificateException: No subject alternative names matching IP address 121.XX.XX.111 found.
I have generated Self-signed certificate in sfdc and imported in PI. Will Self-signed certificate work? Do I need CA-Signed Certificate?
Also, is there any restriction in salesforce that callout endpoint should not be server IP but server hostname?