diff --git a/salt/modules/tls.py b/salt/modules/tls.py index 4f3d7db6b7..45cadaa535 100644 --- a/salt/modules/tls.py +++ b/salt/modules/tls.py @@ -430,8 +430,9 @@ def create_self_signed_cert( if not os.path.exists('{0}/{1}/certs/'.format(_cert_base_path(), tls_dir)): os.makedirs("{0}/{1}/certs/".format(_cert_base_path(), tls_dir)) + print '{0}/{1}/{2}.crt'.format(_cert_base_path(), tls_dir, CN) if os.path.exists( - '{0}/{1}/{2}.crt'.format(_cert_base_path(), tls_dir, CN) + '{0}/{1}/certs/{2}.crt'.format(_cert_base_path(), tls_dir, CN) ): return 'Certificate "{0}" already exists'.format(tls_dir)