xref: /titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ikecert.sh (revision a38ddfee9c8c6b6c5a2947ff52fd2338362a4444)
1#!/usr/bin/pfsh
2#
3# CDDL HEADER START
4#
5# The contents of this file are subject to the terms of the
6# Common Development and Distribution License, Version 1.0 only
7# (the "License").  You may not use this file except in compliance
8# with the License.
9#
10# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11# or http://www.opensolaris.org/os/licensing.
12# See the License for the specific language governing permissions
13# and limitations under the License.
14#
15# When distributing Covered Code, include this CDDL HEADER in each
16# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17# If applicable, add the following below this CDDL HEADER, with the
18# fields enclosed by brackets "[]" replaced with your own identifying
19# information: Portions Copyright [yyyy] [name of copyright owner]
20#
21# CDDL HEADER END
22#
23#
24#ident	"%Z%%M%	%I%	%E% SMI"
25#
26# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
27# Use is subject to license terms.
28#
29
30#
31# ikecert is a wrapper to three programs in /usr/lib/inet which do the heavy
32# lifting for IKE certificate database management (i.e. the files in
33# /etc/inet/ike/publickeys, /etc/inet/secret/ike.privatekeys, and
34# /etc/inet/ike/crls).
35#
36
37case "$1" in
38'certdb')
39	# Okay!  We're good to go.
40	;;
41'certrldb')
42	# Okay!  We're good to go.
43	;;
44'certlocal')
45	# Okay!  We're good to go.
46	;;
47'tokens')
48	# Execute the special options of certlocal.
49	exec /usr/lib/inet/certlocal -X
50	;;
51
52*)
53	echo "Usage: ikecert { certdb | certrldb | certlocal | tokens }" \
54		"<options> "
55	echo "       Use '-h' after one of the cert-commands for more details."
56	exit 1
57	;;
58esac
59
60exec /usr/lib/inet/"$@"
61