lunarway / openbanking

Repository for keeping track of issues related to Lunar's Open Banking APIs
https://developer.openbanking.prod.lunar.app/
1 stars 0 forks source link

Problem with certificates for registration #47

Closed milan0v closed 1 year ago

milan0v commented 1 year ago

Hello, I tried curl -v -H "Content-Type: application/json" -X POST --data '{"redirectUris":["https://localhost:5000"],"roles":["PSP_AI","PSP_PI"],"name":"mycompany"}' --cert qwac.crt --key qwac.key https://sandbox.openbanking.prod.lunar.app/tpp Note: Unnecessary use of -X or --request, POST is already inferred.

Also tried https://tpp.openbanking.prod.lunar.tech/tpp with the same result, any thoughts? And what is the correct url for registering to sandbox ?

Crevil commented 1 year ago

This looks to be an issue with the way you are using curl. The error message informs you that the certificate is not imported correctly for the request.

curl: (58) schannel: Failed to import cert file qwac.crt, last error is 0x80092002

This is not something we can assist you with I'm afraid. Please refer to your curl versions documentation.

Crevil commented 1 year ago

The URL for sandbox is documented here as posted previously another issue as well: https://developer.openbanking.prod.lunar.app/docs/default/api/registration

milan0v commented 1 year ago

I had to downgrade my curl version and now I'm getting this:

curl -v -H "Content-Type: application/json" -X POST --data '{"redirectUris":["https://dev-api-symblepay.io/register"],"roles":["PSP_AI","PSP_PI"],"name":"dev-api-symblepay.io"}' --cacert C:/Users/User/Downloads/cacert.pem --cert qwac.crt --key qwac.key https://sandbox.openbanking.prod.lunar.app/tpp