|
50 | 50 |
|
51 | 51 |
|
52 | 52 | def issue(server, paths, account, domains, key_size, key_file=None,
|
53 |
| - csr_file=None, output_path=None, must_staple=False, verbose=False): |
| 53 | + csr_file=None, output_path=None, output_filename=None, must_staple=False, verbose=False): |
54 | 54 | print("Candango Automatoes {}. Manuale replacement.\n\n".format(
|
55 | 55 | get_version()))
|
56 | 56 |
|
@@ -195,11 +195,12 @@ def issue(server, paths, account, domains, key_size, key_file=None,
|
195 | 195 |
|
196 | 196 | # Write the key, certificate and full chain
|
197 | 197 | os.makedirs(output_path, exist_ok=True)
|
198 |
| - cert_path = os.path.join(output_path, domains[0] + '.crt') |
199 |
| - chain_path = os.path.join(output_path, domains[0] + '.chain.crt') |
| 198 | + cert_name = output_filename if output_filename else domains[0] |
| 199 | + cert_path = os.path.join(output_path, cert_name + '.crt') |
| 200 | + chain_path = os.path.join(output_path, cert_name + '.chain.crt') |
200 | 201 | intermediate_path = os.path.join(output_path,
|
201 |
| - domains[0] + '.intermediate.crt') |
202 |
| - key_path = os.path.join(output_path, domains[0] + '.pem') |
| 202 | + cert_name + '.intermediate.crt') |
| 203 | + key_path = os.path.join(output_path, cert_name + '.pem') |
203 | 204 |
|
204 | 205 | if order.key is not None:
|
205 | 206 | with open(key_path, 'wb') as f:
|
|
0 commit comments