Skip to content

Small tool which extracts the public certificate from the DCCG /trustlist endpoint result in PEM or DER format.

License

EUPL-1.2, Unknown licenses found

Licenses found

EUPL-1.2
LICENSE.txt
Unknown
LICENSE.pdf
Notifications You must be signed in to change notification settings

ehn-dcc-development/dccg2pem

Repository files navigation

This tool converts the output of GET /trustlist from the DCCG into a directory (or directory per country) of files in either PEM or DER formats.

You can change the directory or export formats by changing the flags in dgcg2pem/Program.cs: EXPORT_PEM, EXPORT_DER and EXPORT_PER_COUNTRY.

Building & Publishing

To use this tool first download .Net 7.0.0 SDK for your platform from https://dotnet.microsoft.com/en-us/download and install it.

Then you can build this project by doing:

dotnet build

You can publish by doing this:

dotnet publish -o dist

Where dist is the folder you want to publish to.

Running

Then you can run it by moving to the output directory:

cd dist

and running:

./dccg2pem your-trust-list.json ./path/to/directory/where/files/will/be/saved

The project includes the trustlist from acceptance dated 2022-11-28. This is copied into the dist directory by the publish command.

To use the provided trustlist:

./dccg2pem acc.json ./output

Windows user? then you don't need to include the ./ and can run it like this:

dccg2pem acc.json ./path/to/directory/where/files/will/be/saved

About

Small tool which extracts the public certificate from the DCCG /trustlist endpoint result in PEM or DER format.

Resources

License

EUPL-1.2, Unknown licenses found

Licenses found

EUPL-1.2
LICENSE.txt
Unknown
LICENSE.pdf

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages