Giter Site home page Giter Site logo

psd2certificategenerator's Introduction

Generate Test PSD2 Certificates

Based on https://www.etsi.org/deliver/etsi_ts/119400_119499/119495/01.03.02_60/ts_119495v010302p.pdf

Getting started

  • Make sure you have .Net Core 3.0 installed.
  1. Clone repository (git clone https://github.com/payoneer/Psd2CertificateGenerator.git)
    Inside the repo folder
  2. Build
    dotnet build
  3. Run. For example:
    dotnet run --project=Psd2CertificateGenerator.CLI -n "My TPP Name" -a "PSDXX-YYY-ZZZZZZ" --country FR
  • You can run dotnet run --project=Psd2CertificateGenerator.CLI to see all the possible arguments.

Using Docker

  1. Build the docker image
    docker build . -t payoneer/psd2gen
  2. Run it in a container
    docker run -it --rm payoneer/psd2gen -n "My TPP Name" -a "PSDXX-YYY-ZZZZZZ" --country FR
  3. Optional: Create certificate files using a mount:
    1. Create an output directory mkdir out
    2. Run the following: docker run -it --mount type=bind,src=$PWD/out,dst=/out --rm payoneer/psd2gen --file /out/sample -n "My TPP Name" -a "PSDXX-YYY-ZZZZZZ" --country FR

Supported arguments

Short Argument Description Required Default
-n --name TPP's name *
-a --auth TPP's PSD2 Authentication Number *
-c country TPP's country *
N/A --file Output filename(s) (e.g. file.crt, file.key, file.pub) "stdout"
-t --type The certificate type "QWAC"
-r --roles PSD2 roles "PSP_AI_PSP_PI"
-d --issuer-dns The Issuer's DNS name "payoneer.com"
-e --issuer-email The Issuer's Email address "[email protected]"
-m --issuer-cn The Issuer's Common name "Payoneer PSD2 Sandbox"
-o --issuer-o The Issuer's organization name "Payoneer"
-u --issuer-ou The Issuer's organization unit name "Payoneer EU"
-l --issuer-l The Issuer's locality "Gibraltar"
-s --issuer-s The Issuer's state
-y --issuer-c The Issuer's country "GI"
--nca-name The approving NCA's name "Payoneer"
--nca-id The approving NCA's id "IL-PAY"
--serial Serial number in hex format (e.g. 01AB23...) "01020304"
-x --exp Expiration in months (can be 0) 39
--help Display help screen
--version Display version information

psd2certificategenerator's People

Contributors

elisherer avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.