Skip to content

An API that can be used to generate self-signed certificates for testing purposes.

License

Notifications You must be signed in to change notification settings

audunn/CertificateManager

Repository files navigation

Certificate Manager

A simple Certificate Manger API that can be used to generate self-signed certificates for testing purposes.

Why

Initialy it was used to generated self-signed eIDAS certificates for internal use while developing solutions for the European PSD2 directive (Revised Directive on Payment Services). It can be used to create other certificates as well omitting the eIDAS extensions.

What is PSD2

PSD2 is the European Commission proposal to create safer and more innovative European payments (PSD2, Directive (EU) 2015/2366). The new rules aim to better protect consumers when they pay online, promote the development and use of innovative online and mobile payments such as through open banking, and make cross-border European payment services safer.

An important element of the directive is the demand for common and secure communication (CSC). eIDAS-defined qualified certificates are demanded for website authentication and electronic seals used for communication between financial services players. The technical specification ETSI TS 119 495 defines a standard for implementing these requirements

In order to be able to test our PSD2 implementation we needed a simple convenient way to generate self-signed test certificates and this api provides this service eIDAS certificates.

Further Reading

Prerequisites

You will need to have .NET Core

Usage

To run the application type the following command:

dotnet run --project CertificateManager.csproj

Or if you have already built the project.

dotnet CertificateManager.dll

This will run the API:

Hosting environment: Production
Content root path: C:\Users\audunn\source\repos\CertificateManager\CertificateManager\bin\Debug\netcoreapp2.2
Now listening on: http://localhost:5000
Now listening on: https://localhost:5001
Application started. Press Ctrl+C to shut down.

When you browse to the url you will get a swaggerUI interface to explore the endpoints.

Built With

  • .netcore - The general-purpose development platform used
  • Serilog - Serilog logging for ASP.NET Core. Simple .NET logging with fully-structured events
  • BouncyCastle.NetCore - The Bouncy Castle Crypto package is a C# implementation of cryptographic algorithms and protocols

Authors

  • Auðunn Baldvinsson - Initial work - audunn

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

Acknowledgments

About

An API that can be used to generate self-signed certificates for testing purposes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published