3 # Generate a certificate for the systemtap server and add it to the
4 # database of trusted servers for the client.
6 # Copyright (C) 2009 Red Hat Inc.
8 # This file is part of systemtap, and is free software. You can
9 # redistribute it and/or modify it under the terms of the GNU General
10 # Public License (GPL); either version 2, or (at your option) any
13 # Common environment setup for stap scripts
15 # INSTALL-HOOK These settings work for running the server from the source tree
16 # INSTALL-HOOK using the dejagnu test harness and will be overridden at install
19 stap_sysconfdir
=`pwd`/net
21 # General configuration
22 stap_tmpdir_prefix_client
=stap.client
23 stap_tmpdir_prefix_server
=stap.server
24 stap_avahi_service_tag
=_stap._tcp
26 # NSS certificate databases
27 stap_root_ssl_db
=$stap_sysconfdir/systemtap
/ssl
28 stap_user_ssl_db
=$HOME/.systemtap
/ssl
30 if test $EUID = 0; then
31 stap_ssl_db
=$stap_root_ssl_db
33 stap_ssl_db
=$stap_user_ssl_db
36 stap_signing_db
=$stap_sysconfdir/systemtap
/staprun
37 stap_certfile
=stap.cert
38 stap_old_certfile
=stap-server.cert