#!/usr/bin/pfsh
#
#ident "%Z%%M% %I% %E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
# ikecert is a wrapper to three programs in /usr/lib/inet which do the heavy
# lifting for IKE certificate database management (i.e. the files in
# /etc/inet/ike/publickeys, /etc/inet/secret/ike.privatekeys, and
# /etc/inet/ike/crls).
#
case "$1" in
'certdb')
# Okay! We're good to go.
;;
'certrldb')
# Okay! We're good to go.
;;
'certlocal')
# Okay! We're good to go.
;;
'tokens')
# Execute the special options of certlocal.
exec /usr/lib/inet/certlocal -X
;;
*)
echo "Usage: ikecert { certdb | certrldb | certlocal | tokens }" \
"<options> "
echo " Use '-h' after one of the cert-commands for more details."
exit 1
;;
esac
exec /usr/lib/inet/"$@"