Revize 94e89bb1
Přidáno uživatelem Jan Pašek před téměř 4 roky(ů)
src/services/cryptography.py | ||
---|---|---|
374 | 374 |
TemporaryFile("private_key.pem", key.private_key) as key_file: |
375 | 375 |
|
376 | 376 |
args = ["ca", "-config", config_file, "-gencrl", "-keyfile", key_file, "-cert", cert_file, "-outdir", "."] |
377 |
|
|
378 |
if key.password is not None and key.password != "": |
|
379 |
args.extend(["-passin", f"pass:{key.password}"]) |
|
380 |
|
|
377 | 381 |
return self.__run_for_output(args).decode("utf-8") |
378 | 382 |
|
379 | 383 |
|
Také k dispozici: Unified diff
Re #8576 - calling CryptographyService from CrlService, passphrase support