#!/bin/bash # Add an existing server certificate to the # database of trusted SSL servers for the client. # # Copyright (C) 2009 Red Hat Inc. # # This file is part of systemtap, and is free software. You can # redistribute it and/or modify it under the terms of the GNU General # Public License (GPL); either version 2, or (at your option) any # later version. # Deprecation warning. echo "WARNING: stap-authorize-signing-cert is deprecated and will be removed in release 1.5" >&2 echo "Please use 'stap --trust-servers'. See stap(1) for more information" >&2 # Initialize the environment . ${PKGLIBEXECDIR}stap-env certfile=$1 certdb=$2 # Obtain the filename of the certificate if test "X$certfile" = "X"; then echo "Certificate file must be specified" >&2 exit 1 fi # Obtain the certificate database directory name. if test "X$certdb" = "X"; then certdb=$stap_signing_db fi ${stap_pkglibexecdir}stap-authorize-cert $certfile $certdb