diff options
author | Yang Tse <yangsita@gmail.com> | 2009-11-27 12:00:53 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-11-27 12:00:53 +0000 |
commit | c7136274125d311970ec5e39362a4fa026a52160 (patch) | |
tree | 295333e56f03d20cfe8da15b4e5cf11096db5bcd /tests | |
parent | b1a35cd3ac0f855789db903abc9b56c21840bbcc (diff) |
To allow remote log inspection avoid redirecting messages to stderr.
Set 0600 file permissions on certificate pem files.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/httpsserver.pl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/httpsserver.pl b/tests/httpsserver.pl index 2857883e7..45eb92060 100644 --- a/tests/httpsserver.pl +++ b/tests/httpsserver.pl @@ -87,7 +87,7 @@ foreach my $veropt (('-version', '-V')) { my $cmd; if(!$ver_major) { - print STDERR "no stunnel or unknown version\n"; + print "no stunnel or unknown version\n"; } elsif($ver_major < 4) { # stunnel version less than 4.00 @@ -132,11 +132,15 @@ if($verbose) { "; } +# Set file permissions on certificate pem file. +chmod(0600, $certfile) if(-f $certfile); + + my $rc = system($cmd); $rc >>= 8; #if($rc) { -# print STDERR "stunnel exited with $rc!\n"; +# print "stunnel exited with $rc!\n"; #} unlink $conffile; |