]> sourceware.org Git - systemtap.git/blob - stap-authorize-server-cert
Add user_{int8,int16,uint16,int32,uint32,int64}.
[systemtap.git] / stap-authorize-server-cert
1 #!/bin/bash
2
3 # Add an existing server certificate to the
4 # database of trusted SSL servers for the client.
5 #
6 # Copyright (C) 2009 Red Hat Inc.
7 #
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
11 # later version.
12
13 # Deprecation warning.
14 echo "WARNING: stap-authorize-server-cert is deprecated and will be removed in release 1.5" >&2
15 echo "Please use 'stap --trust-servers'. See stap(1) for more information" >&2
16
17 # Initialize the environment
18 . ${PKGLIBEXECDIR}stap-env
19
20 certfile=$1
21 certdb=$2
22
23 # Obtain the filename of the certificate
24 if test "X$certfile" = "X"; then
25 echo "Certificate file must be specified" >&2
26 exit 1
27 fi
28
29 # Obtain the certificate database directory name.
30 if test "X$certdb" = "X"; then
31 certdb=$stap_ssl_db/client
32 fi
33
34 ${stap_pkglibexecdir}stap-authorize-cert $certfile $certdb
This page took 0.038006 seconds and 5 git commands to generate.