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