Skip to content

Commit

Permalink
Merge pull request #148 from trinko/bug/invalid-IPA-code
Browse files Browse the repository at this point in the history
Changed PUB_SECTOR_PATTERN to fix validation on IPA code
  • Loading branch information
peppelinux authored Oct 13, 2023
2 parents 199c2e5 + 03087dd commit 07e85f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spid_compliant_certificates/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
_min = 5

# micro version
_mic = 4
_mic = 5

# release level (alpha, beta, rc, final)
_rel = 'final'
Expand Down
2 changes: 1 addition & 1 deletion spid_compliant_certificates/validator/checks/subject_dn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})$'


Expand Down

0 comments on commit 07e85f5

Please sign in to comment.