| Conditions | 2 |
| Total Lines | 14 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import base64 |
||
| 38 | def cert_info(signer: Signer): |
||
| 39 | if signer: |
||
| 40 | return { |
||
| 41 | "NoCertificado": signer.certificate_number, |
||
| 42 | "Tipo": str(signer.type), |
||
| 43 | |||
| 44 | "organizationName": signer.certificate.get_subject().O, |
||
| 45 | "x500UniqueIdentifier": signer.certificate.get_subject().x500UniqueIdentifier, |
||
| 46 | "serialNumber": signer.certificate.get_subject().serialNumber, |
||
| 47 | "organizationUnitName": signer.certificate.get_subject().OU, |
||
| 48 | "emailAddress": signer.certificate.get_subject().emailAddress, |
||
| 49 | |||
| 50 | "notAfter": convert_ans1_date(signer.certificate.get_notAfter()), |
||
| 51 | "notBefore": convert_ans1_date(signer.certificate.get_notBefore()), |
||
| 52 | } |