Browse Source

hot-feat: add assinatura avançada 1doc no alg de captura de ass

3.1.x
LeandroJatai 3 weeks ago
parent
commit
e23e780991
  1. 4
      sapl/base/receivers.py

4
sapl/base/receivers.py

@ -225,7 +225,7 @@ def signed_files_extraction_function(sender, instance, **kwargs):
issuer = cert.native['tbs_certificate']['issuer'] issuer = cert.native['tbs_certificate']['issuer']
oname = issuer.get('organization_name', '') oname = issuer.get('organization_name', '')
if oname == 'Gov-Br': if oname in ('Gov-Br', '1Doc'):
nome = subject['common_name'].split(':')[0] nome = subject['common_name'].split(':')[0]
continue continue
@ -336,7 +336,7 @@ def signed_files_extraction_function(sender, instance, **kwargs):
issuer = cert.native['tbs_certificate']['issuer'] issuer = cert.native['tbs_certificate']['issuer']
oname = issuer.get('organization_name', '') oname = issuer.get('organization_name', '')
if oname == 'Gov-Br': if oname in ('Gov-Br', '1Doc'):
nome = subject['common_name'].split(':')[0] nome = subject['common_name'].split(':')[0]
continue continue

Loading…
Cancel
Save