summaryrefslogtreecommitdiffstats
path: root/pki/base/tps/lib/perl/PKI/TPS
diff options
context:
space:
mode:
authorjmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2008-04-02 20:47:47 +0000
committerjmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2008-04-02 20:47:47 +0000
commitecf7275ff8d44ac40f1b8bdfdb06c942052d499c (patch)
tree7f32404123a1ccea0c5ed7885c19b0730e56dd77 /pki/base/tps/lib/perl/PKI/TPS
parentf00016fbcce972f6a1310f3755289a8858132c3a (diff)
downloadpki-ecf7275ff8d44ac40f1b8bdfdb06c942052d499c.tar.gz
pki-ecf7275ff8d44ac40f1b8bdfdb06c942052d499c.tar.xz
pki-ecf7275ff8d44ac40f1b8bdfdb06c942052d499c.zip
Improve error message for problem connecting to CA, bug# 404084.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@11 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/tps/lib/perl/PKI/TPS')
-rwxr-xr-xpki/base/tps/lib/perl/PKI/TPS/NamePanel.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/pki/base/tps/lib/perl/PKI/TPS/NamePanel.pm b/pki/base/tps/lib/perl/PKI/TPS/NamePanel.pm
index 0c65f100c..8ac588bfd 100755
--- a/pki/base/tps/lib/perl/PKI/TPS/NamePanel.pm
+++ b/pki/base/tps/lib/perl/PKI/TPS/NamePanel.pm
@@ -298,6 +298,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::TPS::Wizard::debug_log("NamePanel: response content= " . $content);
@@ -306,9 +310,10 @@ $req = "/usr/bin/sslget -e \"$params\" -d \"$instanceDir/alias\" -p \"$db_passwo
if ($status ne "0") {
my $error = $response->{Error};
&PKI::TPS::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};
&PKI::TPS::Wizard::debug_log("NamePanel: new cert generated= " . $cert);