]> sourceware.org Git - systemtap.git/commitdiff
PR 12101: stap-server should use proper cert passwords.
authorDave Brolley <brolley@redhat.com>
Mon, 21 Mar 2011 20:25:31 +0000 (16:25 -0400)
committerDave Brolley <brolley@redhat.com>
Mon, 21 Mar 2011 20:25:31 +0000 (16:25 -0400)
Automatically regenerate certificate databases containing a password file.
Otherwise automatically started servers will fail because they won't know
the password.

stap-serverd

index 492c7737080989e632afd6c6f10e6df07bfe6f5b..4440903c1f19a5c058165b4755ce0f3da8247dd8 100755 (executable)
@@ -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.
This page took 0.029174 seconds and 5 git commands to generate.