11

I want to create a eIDAS certificate with QWAC and QSealC profiles with PSD2 specific attributes as mentioned in the doc. Please help me, this is just for testing purposes.

https://docbox.etsi.org/ESI/Open/Latest_Drafts/ts_119495v000003_for-public-review.pdf

4 Answers4

7

I had the same requirement months ago, and I wrote a eIDAS test certificate generator compliant psd2. I followed the ASN.1 Declaration giving by the "ts_119495v000003_for-public-review.pdf" document.

here is the link to generate eIDAS test certificate generator

And then here xs2a open srce we have write some certificate extractor, to extract psd2 attributes and roles from the generated certificate.

guymoyo
  • 79
  • 1
  • 3
4

For me the simplest option was to use OpenSSL command line utility:

openssl req -new -config qwac.conf -keyout qwac.key -out qwac.csr && openssl x509 -req -in qwac.csr -signkey qwac.key -out qwac.crt

qwac.conf is openssl config where you have to set PSD2 specific fields as described here. Configs for QWAC and QSealC can be exactly the same, just need to run command twice.

Fedor
  • 1,149
  • 1
  • 14
  • 27
  • 5
    OpenSSL 1.1.1d already has OID 2.5.4.97 being defined. Instead of defining this OID as custom in `[ dn ]` section use name "organizationIdentifier" – Saleniex Mar 05 '20 at 07:49
2

I too created a certificate generator.

Based on ts_119495v010302p.pdf

https://github.com/payoneer/Psd2CertificateGenerator

Used .Net Core 3.1

Feel free to comment, suggest, report issues and create pull requests.

EliSherer
  • 1,349
  • 1
  • 14
  • 28
1

I would like to extend @guymoyo's answer with clearer instruction. Xs2a (https://github.com/adorsys/xs2a) repository provides a docker image for Xs2a certificate generator: https://hub.docker.com/r/adorsys/xs2a-certificate-generator

So to generate your own TPP certificate all you need to do:

  1. Run docker image
docker run -p 8092:8092 adorsys/xs2a-certificate-generator
  1. Open your browser and navigate to Swagger UI http://localhost:8092/swagger-ui.html
  2. Or directly to createCertUsingPOST Swagger operation
  3. Click on Try it out of createCertUsingPOST
  4. Generated certificate will appear in the endpoint response
Valentyn
  • 51
  • 1
  • 5