From 1f2b7cdddc66a16fd293e3e5c939efb903cf1767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonello=20Dess=C3=AC?= Date: Thu, 12 Oct 2023 18:19:06 +0200 Subject: [PATCH 1/2] Changed PUB_SECTOR_PATTERN to fix validation on IPA code https://github.com/italia/spid-compliant-certificates-python/issues/147 --- spid_compliant_certificates/validator/checks/subject_dn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spid_compliant_certificates/validator/checks/subject_dn.py b/spid_compliant_certificates/validator/checks/subject_dn.py index d8ac9e5..1f128a4 100644 --- a/spid_compliant_certificates/validator/checks/subject_dn.py +++ b/spid_compliant_certificates/validator/checks/subject_dn.py @@ -52,7 +52,7 @@ x509.OID_SURNAME, ] -PUB_SECTOR_PATTERN = r'^PA:IT-\S{1,11}$' +PUB_SECTOR_PATTERN = r'^PA:IT-\S{1,16}$' PRI_SECTOR_PATTERN = r'^(CF:IT-[a-zA-Z0-9]{16}|VATIT-\d{11})$' From 03087dd1a7198f0b4d19580a702ed9e5ac609511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonello=20Dess=C3=AC?= Date: Thu, 12 Oct 2023 19:35:30 +0200 Subject: [PATCH 2/2] Update __init__.py Changed micro version --- spid_compliant_certificates/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spid_compliant_certificates/__init__.py b/spid_compliant_certificates/__init__.py index aa35173..c930795 100644 --- a/spid_compliant_certificates/__init__.py +++ b/spid_compliant_certificates/__init__.py @@ -28,7 +28,7 @@ _min = 5 # micro version -_mic = 4 +_mic = 5 # release level (alpha, beta, rc, final) _rel = 'final'