Skip to Content
0

SAP CP Integration - Error to get a token (jwt) from an iot service

Dec 13, 2017 at 02:29 PM

50

avatar image
Former Member

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:

  • grant_type=client_credentials&
  • response_type=token&
  • client_id=xxxxxx&
  • client_secret=xxxxxx

Component 2: HTTP-Receiver

Component 3: Script Component

  • To check the body response

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

scpi.png (14.8 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers