diff options
Diffstat (limited to 'func/certmaster.py')
-rwxr-xr-x | func/certmaster.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/func/certmaster.py b/func/certmaster.py index ee9c5f0..fe5dcbc 100755 --- a/func/certmaster.py +++ b/func/certmaster.py @@ -39,12 +39,7 @@ class CertMaster(object): def __init__(self, conf_file=CERTMASTER_CONFIG): self.cfg = read_config(conf_file, CMConfig) - fqdn = socket.getfqdn() - host = socket.gethostname() - if fqdn.find(host) != -1: - usename = fqdn - else: - usename = host + usename = utils.get_hostname() mycn = '%s-CA-KEY' % usename self.ca_key_file = '%s/funcmaster.key' % self.cfg.cadir |