projects
/
certmaster.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force create_minion_keys function to use all lowercase hostnames
[certmaster.git]
/
certmaster
/
utils.py
diff --git
a/certmaster/utils.py
b/certmaster/utils.py
index
6f73ccc
..
6b79ce7
100644
(file)
--- 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")
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)
key_file = '%s/%s.pem' % (cert_dir, hn)
csr_file = '%s/%s.csr' % (cert_dir, hn)