mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-22 08:15:18 +00:00
cli: Add $HOSTNAME option for common name config option of client
This commit is contained in:
parent
1c49626f50
commit
9c6872a949
@ -269,6 +269,10 @@ def certidude_enroll(fork, renew, no_wait, kerberos, skip_self):
|
||||
click.echo("No common name specified for %s, not requesting a certificate" % authority_name)
|
||||
continue
|
||||
|
||||
# If deriving common name from *current* hostname is preferred
|
||||
if common_name == "$HOSTNAME":
|
||||
common_name = const.HOSTNAME
|
||||
|
||||
################################
|
||||
### Generate keypair and CSR ###
|
||||
################################
|
||||
|
Loading…
Reference in New Issue
Block a user