mirror of
https://github.com/laurivosandi/certidude
synced 2025-09-06 05:41:04 +00:00
cli: Add $HOSTNAME option for common name config option of client
This commit is contained in:
@@ -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 ###
|
||||
################################
|
||||
|
Reference in New Issue
Block a user