diff options
author | Jan Cholasta <[email protected]> | 2014-12-09 12:47:58 +0000 |
---|---|---|
committer | Jan Cholasta <[email protected]> | 2014-12-10 17:08:49 +0000 |
commit | 3cb2f5e841f5bac6a8cc02bc9467846b35f7aab8 (patch) | |
tree | 08f65c6925e91bd52e658217466490121faeaa99 | |
parent | 731035e526441b93b69fb20c6a6c990cdcdc4899 (diff) | |
download | freeipa-3cb2f5e841f5bac6a8cc02bc9467846b35f7aab8.tar.gz freeipa-3cb2f5e841f5bac6a8cc02bc9467846b35f7aab8.tar.xz freeipa-3cb2f5e841f5bac6a8cc02bc9467846b35f7aab8.zip |
Refer the user to freeipa.org when something goes wrong in ipa-cacert-manage
https://fedorahosted.org/freeipa/ticket/4781
Reviewed-By: Martin Kosek <[email protected]>
Reviewed-By: Martin Basti <[email protected]>
-rw-r--r-- | ipaserver/install/ipa_cacert_manage.py | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/ipaserver/install/ipa_cacert_manage.py b/ipaserver/install/ipa_cacert_manage.py index 8fda6a263..e07460169 100644 --- a/ipaserver/install/ipa_cacert_manage.py +++ b/ipaserver/install/ipa_cacert_manage.py @@ -221,12 +221,21 @@ class CACertManage(admintool.AdminTool): nss_cert = x509.load_certificate_from_file(cert_file.name) cert = nss_cert.der_data if nss_cert.subject != subject: - raise admintool.ScriptError("Subject name mismatch") + raise admintool.ScriptError( + "Subject name mismatch (visit " + "http://www.freeipa.org/page/Troubleshooting for " + "troubleshooting guide)") if x509.get_der_subject(cert, x509.DER) != der_subject: - raise admintool.ScriptError("Subject name encoding mismatch") + raise admintool.ScriptError( + "Subject name encoding mismatch (visit " + "http://www.freeipa.org/page/Troubleshooting for " + "troubleshooting guide)") #pylint: disable=E1101 if nss_cert.subject_public_key_info.format() != pkinfo: - raise admintool.ScriptError("Subject public key info mismatch") + raise admintool.ScriptError( + "Subject public key info mismatch (visit " + "http://www.freeipa.org/page/Troubleshooting for " + "troubleshooting guide)") #pylint: enable=E1101 finally: del nss_cert @@ -253,7 +262,9 @@ class CACertManage(admintool.AdminTool): tmpdb.verify_ca_cert_validity('IPA CA') except ValueError, e: raise admintool.ScriptError( - "Not a valid CA certificate: %s" % e) + "Not a valid CA certificate: %s (visit " + "http://www.freeipa.org/page/Troubleshooting for " + "troubleshooting guide)" % e) trust_chain = tmpdb.get_trust_chain('IPA CA')[:-1] for nickname in trust_chain: @@ -340,7 +351,9 @@ class CACertManage(admintool.AdminTool): tmpdb.verify_ca_cert_validity(nickname) except ValueError, e: raise admintool.ScriptError( - "Not a valid CA certificate: %s" % e) + "Not a valid CA certificate: %s (visit " + "http://www.freeipa.org/page/Troubleshooting for " + "troubleshooting guide)" % e) trust_flags = options.trust_flags if ((set(trust_flags) - set(',CPTcgpuw')) or |