[Openvas-commits] r1162 - trunk/openvas-server

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Aug 22 02:09:43 CEST 2008


Author: jfs
Date: 2008-08-22 02:09:42 +0200 (Fri, 22 Aug 2008)
New Revision: 1162

Modified:
   trunk/openvas-server/openvas-mkcert-client.in
Log:
Have nessus-mkcert-client warn if the server certificates cannot be read
(happens when you are not root)

(based on patch included in Debian since nessus-core 2.2.3-1, in february 2002)



Modified: trunk/openvas-server/openvas-mkcert-client.in
===================================================================
--- trunk/openvas-server/openvas-mkcert-client.in	2008-08-22 00:07:08 UTC (rev 1161)
+++ trunk/openvas-server/openvas-mkcert-client.in	2008-08-22 00:09:42 UTC (rev 1162)
@@ -150,6 +150,8 @@
 CAKEY=$OPENVASPRIV/cakey.pem
 CACERT=$OPENVASPUB/cacert.pem
 
+[ -r "$CAKEY" ] || echo "WARN: $CAKEY is not readable, this script will not be able to find the server certificate (hint: are you root?)"
+
 while [ ! -f "$CAKEY" ]; do
     eval_gettext "\$CAKEY: not found or not a file."
     gettext "OpenVAS CA private key: "



More information about the Openvas-commits mailing list