gen_privkey.patch
creole/cert.py | ||
---|---|---|
318 | 318 |
@path_privkey : chemin du fichier de sortie |
319 | 319 |
@bits (optionnel) : longueur de la clé à générer |
320 | 320 |
""" |
321 |
if not os.path.exists(os.path.dirname(path_privkey)): |
|
322 |
os.makedirs(os.path.dirname(path_privkey)) |
|
321 | 323 |
res = system_out(["/usr/bin/certtool", |
322 | 324 |
"--generate-privkey", |
323 | 325 |
"--outfile", path_privkey, |