adorsys / open-banking-gateway

Provides RESTful API, tools, adapters, and connectors for transparent access to open banking API's (for banks that support PSD2 and XS2A as well as HBCI/FinTS)
https://adorsys.github.io/open-banking-gateway
GNU Affero General Public License v3.0
248 stars 93 forks source link

Use real certificates for Xs2a Sandbox #416

Open valb3r opened 4 years ago

valb3r commented 4 years ago

As xs2a-adapter supports (should support from version 0.0.8) real request signing for Sandbox API, we need to make:

  1. mock-qwac-certificate of Sandbox is complete security bypass, we should drop it.
  2. Sandbox should not use mock-qwac-certificate and profile. It should work with our 'OPBA mocked generated certificate' (requests done from us must be signed and Sandbox should validate the signature)
  3. We need to supply 'OPBA mocked generated certificate' to xs2a-adapter so all requests from us to Sandbox must be signed.

So we generate some certificate, make Sandbox aware of it (to trust it) and sign all requests with it. Unsigned requests must fail.

gatiskalnins commented 3 years ago

https://jira.adorsys.de/browse/OBG-78