italia / spid-compliant-certificates-python

Python native solution to generate and validate X.509 certificates according to Avviso SPID n.29 v3.
MIT License
20 stars 5 forks source link

Creating a self-signed certificate for "Organizzazione fittizia per il collaudo" #133

Open SeemoneB opened 1 year ago

SeemoneB commented 1 year ago

Describe the bug

I'm trying to create a certificate for "Organizzazione fittizia per il collaudo", but the IPA code "__aggrsint" does not exist on indicepa.gov.it and I can not go ahead with the creation.

To Reproduce

Steps to reproduce the behavior:

  1. Execute the follow command: spid-compliant-certificates generator --key-size 2048 --days 365 --entity-id https://blabla.it/pub-ag-lite/TEST --common-name 'Organizzazione fittizia per il collaudo' --locality-name Roma --org-id PA:IT-__aggrsint --org-name 'Organizzazione fittizia per il collaudo' --sector public

Expected behavior

Expects me to create the certificate for testing purposes

Screenshots

image

Environment (please complete the following information):

Additional context

The company I work for is going to be federate as public aggregator, for that I need to use --sector public on the command above

peppelinux commented 1 year ago

Ciao Simone,

Well, I'd accept a PR to add a parameter todisable the check on codice IPA.

Would you like to push this contribution in this project?