From 873c85602115e1cd92c3c72a7e3cbcd278d6f282 Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Mon, 21 Mar 2011 16:25:31 -0400 Subject: [PATCH] PR 12101: stap-server should use proper cert passwords. Automatically regenerate certificate databases containing a password file. Otherwise automatically started servers will fail because they won't know the password. --- stap-serverd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stap-serverd b/stap-serverd index 492c77370..4440903c1 100755 --- a/stap-serverd +++ b/stap-serverd @@ -319,7 +319,7 @@ function check_cert { # If the certificate does not exist or the certificate # is not valid, then generate a new one. - if test ! -d "$ssl_db" -o ! -f "$ssl_db/$stap_certfile" -o ! -f "$ssl_db/cert8.db" || \ + if test ! -d "$ssl_db" -o ! -f "$ssl_db/$stap_certfile" -o ! -f "$ssl_db/cert8.db" -o -f "$ssl_db/pw" || \ ! certutil -V -n $nss_cert -u V -d "$ssl_db" -e \ -b `date +%g%m%d%H%M%S`+0005 >> "$logfile" 2>&1; then # Our certificate does not exist or is not valid. -- 2.43.5