Revize dd91fb7a
Přidáno uživatelem Jan Pašek před téměř 4 roky(ů)
src/constants.py | ||
---|---|---|
72 | 72 |
database = %s |
73 | 73 |
serial = %s |
74 | 74 |
default_md = sha1 |
75 |
policy = clr_policy
|
|
75 |
policy = crl_policy
|
|
76 | 76 |
default_crl_days = 30 |
77 | 77 |
|
78 |
[ clr_policy ]
|
|
78 |
[ crl_policy ]
|
|
79 | 79 |
commonName = supplied |
80 | 80 |
stateOrProvinceName = optional |
81 | 81 |
countryName = optional |
src/services/cryptography.py | ||
---|---|---|
368 | 368 |
:param index_file_path: path to a file that contains the openssl index with all revoked certificates |
369 | 369 |
:return: CRL encoded in PEM format string |
370 | 370 |
""" |
371 |
# openssl ca requires the .srl file to exists, therefore a dummy, unused file is created |
|
371 | 372 |
with TemporaryFile("serial.srl", "0") as serial_file, \ |
372 | 373 |
TemporaryFile("crl.conf", CRL_CONFIG % (index_file_path, serial_file)) as config_file, \ |
373 | 374 |
TemporaryFile("certificate.pem", cert.pem_data) as cert_file, \ |
Také k dispozici: Unified diff
Re #8576 - openssl config template update, comment added