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.
- Python 3.6 or higher
- lxml library
- requests library
python eidas_tl.py [-h] {QWAC,QSealC} country [--target_folder TARGET_FOLDER]
{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).
--target_folder
: Target folder to save certificate files in.
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