简体   繁体   English

如何使用 QWAC 和 QSealC 配置文件(PSD2 特定属性)创建 eIDAS 证书以进行测试

[英]How to create eIDAS certificate with QWAC and QSealC profiles (PSD2 specific attributes) for testing

I want to create a eIDAS certificate with QWAC and QSealC profiles with PSD2 specific attributes as mentioned in the doc.我想创建一个带有 QWAC 和 QSealC 配置文件的 eIDAS 证书,其中包含文档中提到的 PSD2 特定属性。 Please help me, this is just for testing purposes.请帮助我,这仅用于测试目的。

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

I had the same requirement months ago, and I wrote a eIDAS test certificate generator compliant psd2.几个月前我有同样的要求,我写了一个 eIDAS 测试证书生成器兼容 psd2。 I followed the ASN.1 Declaration giving by the "ts_119495v000003_for-public-review.pdf" document.我遵循了“ts_119495v000003_for-public-review.pdf”文档中给出的 ASN.1 声明。

here is the link to generate eIDAS test certificate generator这是生成eIDAS 测试证书生成器的链接

And then here xs2a open srce we have write some certificate extractor, to extract psd2 attributes and roles from the generated certificate.然后在这里xs2a open srce我们编写了一些证书提取器,从生成的证书中提取 psd2 属性和角色。

For me the simplest option was to use OpenSSL command line utility:对我来说,最简单的选择是使用 OpenSSL 命令行实用程序:

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 . qwac.conf 是openssl 配置,您必须在这里设置 PSD2 特定字段。 Configs for QWAC and QSealC can be exactly the same, just need to run command twice. QWAC 和 QSealC 的配置可以完全相同,只需要运行两次命令。

I too created a certificate generator.我也创建了一个证书生成器。

Based on ts_119495v010302p.pdf基于ts_119495v010302p.pdf

https://github.com/payoneer/Psd2CertificateGenerator https://github.com/payoneer/Psd2CertificateGenerator

Used .Net Core 3.1使用 .Net Core 3.1

Feel free to comment, suggest, report issues and create pull requests.随意评论、建议、报告问题并创建拉取请求。

I would like to extend @guymoyo's answer with clearer instruction.我想用更清晰的说明来扩展@guymoyo 的答案。 Xs2a ( https://github.com/adorsys/xs2a ) repository provides a docker image for Xs2a certificate generator: https://hub.docker.com/r/adorsys/xs2a-certificate-generator Xs2a ( https://github.com/adorsys/xs2a ) 存储库为 Xs2a 证书生成器提供了一个 docker 镜像: https ://hub.docker.com/r/adorsys/xs2a-certificate-generator

So to generate your own TPP certificate all you need to do:因此,要生成您自己的 TPP 证书,您只需:

  1. Run docker image运行 docker 镜像
docker run -p 8092:8092 adorsys/xs2a-certificate-generator
  1. Open your browser and navigate to Swagger UI http://localhost:8092/swagger-ui.html打开浏览器并导航到Swagger UI http://localhost:8092/swagger-ui.html
  2. Or directly to createCertUsingPOST Swagger operation或者直接对createCertUsingPOST Swagger 操作
  3. Click on Try it out of createCertUsingPOSTcreateCertUsingPOST单击Try it out
  4. Generated certificate will appear in the endpoint response生成的证书将出现在端点响应中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 X509证书单元测试-我需要创建一个证书和包含它的CRL - X509 certificate unit testing - I need to create a certificate and a CRL which has it 如何使用php以编程方式创建SSL证书? - How to create an ssl certificate programatically with php? 如何创建亚个人数字证书? - How to create a sub-personal digital certificate? 如何为 azure vm 创建 TLS 证书? - How to create TLS certificate for azure vm? 如何创建证书颁发机构作为所有人的可信证书? - How to create a Certificate Authority as a trusted certificate to all? OpenSSL:如何创建一个空主题的证书? - OpenSSL: How to create a certificate with an empty subject? 如何使用 openssl 1.1.1 创建自签名证书 - How to create self signed certificate with openssl 1.1.1 如何使用包含主题类型为 CA 的基本约束扩展的 CA 证书创建自签名证书 - How to create a self signed certificate with a CA certificate containing the basic constraint extension with subject type as CA 如何通过InstallScript函数创建自签名证书? - How to create Self-Sign certificate through InstallScript functions? 如何在PHP中创建数字证书并导出到.p12文件? - How to create a digital certificate and export to .p12 file in PHP?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM