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