X-Git-Url: https://pwan.org/git/?p=certmaster.git;a=blobdiff_plain;f=certmaster%2Futils.py;h=6b79ce74c3b5fd5c5cfcc76682c01f69b0f3f917;hp=6f73ccc507f5d42322890916acfd0c391bb973e0;hb=73e598e357c28782bb3d13cfd7b62c20dbab1d9c;hpb=f6ee54c2457bec39c869d9526d47e977e87c702c diff --git a/certmaster/utils.py b/certmaster/utils.py index 6f73ccc..6b79ce7 100644 --- a/certmaster/utils.py +++ b/certmaster/utils.py @@ -137,6 +137,9 @@ def create_minion_keys(hostname=None): if hn is None: raise codes.CMException("Could not determine a hostname other than localhost") + else: + # use lowercase letters for hostnames + hostname = hostname.lower() key_file = '%s/%s.pem' % (cert_dir, hn) csr_file = '%s/%s.csr' % (cert_dir, hn)