Correcting error message for CA Key validation failure

Change-Id: I8f16b56d09f69b07423faf23615a3bdd15c3b10a
This commit is contained in:
Adam Harwell 2017-01-04 23:09:43 -08:00
parent 71f0aea35f
commit 654e88686e
1 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ class LocalCertGenerator(cert_gen.CertGenerator):
ca_cert = open(CONF.certificates.ca_certificate).read()
except IOError:
raise exceptions.CertificateGenerationException(
msg="Failed to load {0}."
msg="Failed to load CA Certificate {0}."
.format(CONF.certificates.ca_certificate)
)
if not ca_key:
@ -59,8 +59,8 @@ class LocalCertGenerator(cert_gen.CertGenerator):
ca_key = open(CONF.certificates.ca_private_key).read()
except IOError:
raise exceptions.CertificateGenerationException(
msg="Failed to load {0}."
.format(CONF.certificates.ca_certificate)
msg="Failed to load CA Private Key {0}."
.format(CONF.certificates.ca_private_key)
)
if not ca_key_pass:
ca_key_pass = CONF.certificates.ca_private_key_passphrase