Hello,
I try to get a token from an iot-service with the SAP CP Integration.
This are my error details in the CP Integration:
java.net.ConnectException: General SSLEngine problem, cause: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This is my Integration: scpi.png (Image)
Component 1: Content Modifier
Header:
Create; content-type; Constant; application/x-www-form-urlencoded
Body:
Component 2: HTTP-Receiver
Component 3: Script Component
With postman, I have no problems to get the jwt. Postman log:
Request Headers:
content-type:"application/x-www-form-urlencoded"
cache-control:"no-cache"
postman-token:"xxxxxx"
user-agent:"PostmanRuntime/7.1.1"
accept:"*/*"
host:"xxxxxx"
accept-encoding:"gzip, deflate"
content-length:127
Request Body:
grant_type:"client_credentials"
response_type:"token"
client_id:"xxxxxx"
client_secret:"xxxxxx"
In the response body, I get a bearer token back.
I hope someone can help me.
Thanks and best regards
Lars
Add comment