question

Gijo avatar image
Gijo asked

Certificate Error - Unable to generate access token for Auth Code through Postman

While trying to create access token from the Postman we are getting

the error "Error: unable to verify the first certificate " with below values


Client id - 62ce4de9-a6d5-4fa6-a2d4-089a236831ec

Client secret key - 8714d8e9-513b-4beb-a2c2-2768fc7d0225

Redirect URL : https://auth.MyFinstra.net/callback



Below is the error console :

*********************************POSTMAN***ERROR******LOG***********************

POST https://api.fusionfabric.cloud/login/v1/sandbox/oidc/token

Error: unable to verify the first certificate

Warning: This request did not get sent completely and might not have all the required system headers

Client Certificate

Proxy

authenticate: false

host: "127.0.0.1"

id: "fae38d6d-431a-4591-932e-810a3569ffd0"

match: {…}

port: 8888

tunnel: false

Request Headers

Content-Type: application/x-www-form-urlencoded

Authorization: Basic NjJjZTRkZTktYTZkNS00ZmE2LWEyZDQtMDg5YTIzNjgzMWVjOjExZTlhNDJjLTZjZjAtNDI0Ny1hOWE3LTNhNTU1MGI0NTE4Ng==

Request Body

grant_type: "authorization_code"

code: "13fe3e64-c074-4c63-b082-a5e29868337b.22778444-ffb7-43a9-a4c7-e792ff2a8913.f:b04b9e0f-9d0d-4367-99ef-7d876dc8ff1d:62ce4de9-a6d5-4fa6-a2d4-089a236831ec"

redirect_uri: "https://auth.MyFinstra.net/callback"

client_id: "62ce4de9-a6d5-4fa6-a2d4-089a236831ec"

Error: unable to verify the first certificate

*********************************POSTMAN***ERROR******LOG***********************


Below is the post man UI to generate the request :



Kindly help .

Thanks .

Authenticationtutorial
1581084505300.png (40.7 KiB)
6 comments
10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Kamil avatar image Kamil ♦♦ commented ·

Hello Gijo,

could you please tell me what exact API you are using ?


Best regards,

Kamil

0 Likes 0 ·
Gijo avatar image Gijo Kamil ♦♦ commented ·

Sure Kamil , I am using https://api.fusionfabric.cloud/corporate/staticdata/v1/currencies api

0 Likes 0 ·
Dawid Rampalski avatar image Dawid Rampalski ♦♦ commented ·

Hello,

are you sure that your Callback URL matches the ReplyURL of your application created in developer portal?

When i try to get a token with your credentials it fails because there seem to be mismatch.

Please let me know.

Dawid

0 Likes 0 ·
Gijo avatar image Gijo Dawid Rampalski ♦♦ commented ·

The reply url is correct https://auth.MyFinstra.net/callback one ,

Below is the snapshot of my profile dashboard which shows the call back url / reply url .

0 Likes 0 ·
1581371143699.png (23.6 KiB)
Francois Lasne avatar image Francois Lasne ♦♦ Gijo commented ·

This doesn't look a valid https certificate .


Nb in b2b this reply URL is not used.

0 Likes 0 ·
Show more comments

0 Answers