Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.1 KB

File metadata and controls

36 lines (22 loc) · 1.1 KB

eIDAS TSP Certificates extractor

This repository contains the script for extracting CA certificates from XML files available through eIDAS Trusted List.

The script uses the API of the eIDAS Trusted List, which is described at https://eidas.ec.europa.eu/efda/swagger-ui/index.html.

The code is written mainly using the ChatGPT language model from OpenAI.

Prerequisites

  • Python 3.6 or higher
  • lxml library
  • requests library

Usage

python eidas_tl.py [-h] {QWAC,QSealC} country [--target_folder TARGET_FOLDER]

Positional Arguments

  • {QWAC,QSealC}: Type of service to retrieve certificate for. QWAC - Qualified certificate for website authentication; QSealC - Qualified certificate for electronic seal.
  • country: ISO 3166-1 alpha-2 country code (only EEA countries are supported).

Optional Arguments

  • --target_folder: Target folder to save certificate files in.

Example

To extract QWAC CA certificates for QTSPs based in Austria and save them in the certs folder, run:

python eidas_tl.py QWAC AT --target_folder certs