diff options
author | jmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2008-04-02 20:46:35 +0000 |
---|---|---|
committer | jmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2008-04-02 20:46:35 +0000 |
commit | f00016fbcce972f6a1310f3755289a8858132c3a (patch) | |
tree | 600b7ff7e9a5de9a308db5b46a3c25bef87d918d /pki/base/ra | |
parent | fcd2987b4f08908c7ef1a83ba063cb98d330ff8b (diff) | |
download | pki-f00016fbcce972f6a1310f3755289a8858132c3a.tar.gz pki-f00016fbcce972f6a1310f3755289a8858132c3a.tar.xz pki-f00016fbcce972f6a1310f3755289a8858132c3a.zip |
Improve error message for problem connecting to CA, bug# 404084.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@10 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/ra')
-rwxr-xr-x | pki/base/ra/lib/perl/PKI/RA/NamePanel.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pki/base/ra/lib/perl/PKI/RA/NamePanel.pm b/pki/base/ra/lib/perl/PKI/RA/NamePanel.pm index 49517b2d8..326db2dd5 100755 --- a/pki/base/ra/lib/perl/PKI/RA/NamePanel.pm +++ b/pki/base/ra/lib/perl/PKI/RA/NamePanel.pm @@ -299,6 +299,10 @@ $req = "/usr/bin/sslget -e \"$params\" -d \"$instanceDir/alias\" -p \"$db_passwo $content =~ /(\<XMLResponse\>.*\<\/XMLResponse\>)/; $content = $1; + if ($content eq "") { + $::symbol{errorString} = "CA returned no response. Please check that the CA is available and also check the host's firewall settings."; + return 0; + } my $parser = XML::Simple->new(); &PKI::RA::Wizard::debug_log("NamePanel: response content= " . $content); @@ -307,7 +311,7 @@ $req = "/usr/bin/sslget -e \"$params\" -d \"$instanceDir/alias\" -p \"$db_passwo if ($status ne "0") { my $error = $response->{Error}; &PKI::RA::Wizard::debug_log("NamePanel: Error = $error"); - $::symbol{errorString} = "CA response: $error. Please also check previous related panels."; + $::symbol{errorString} = "CA response: $error. Please check previous related panels." . " Please check that the CA is available and also check the host's firewall settings."; return 0; } $cert = $response->{Requests}->{Request}->{b64}; |