From 2035bcd40b17832439df0a1eb28403b99a71b74f Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Mon, 4 May 2009 16:05:22 -0400 Subject: Module signing and verification using a separate file for the module signature. --- stap-authorize-server-cert | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 stap-authorize-server-cert (limited to 'stap-authorize-server-cert') diff --git a/stap-authorize-server-cert b/stap-authorize-server-cert new file mode 100644 index 00000000..13fb9c9f --- /dev/null +++ b/stap-authorize-server-cert @@ -0,0 +1,30 @@ +#!/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. + +# Initialize the environment +. `dirname $0`/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_ssl_db/client +fi + +${stap_exec_prefix}stap-authorize-cert $certfile $certdb -- cgit