xref: /titanic_52/usr/src/man/man1m/wanboot_keymgmt.1m (revision ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab)
te
Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
WANBOOT_KEYMGMT 1M "Apr 18, 2003"
NAME
wanboot_keymgmt - insert and extract keys
SYNOPSIS

/usr/lib/inet/wanboot/keymgmt -i -k key_file -s keystore -o type=keytype

/usr/lib/inet/wanboot/keymgmt -x -f outfile -s keystore -o type=keytype
DESCRIPTION

The keymgmt utility has two purposes:

To take a raw key, stored in key_file, and insert it in the repository specified by keystore.

To extract a key of a specified type from the repository specified by keystore, depositing it in outfile.

outfile will be created if it does not already exist. The type of key being added or extracted is specified by keytype and may have one of four values: 3des, aes, rsa, or sha1 (the last used by HMAC SHA-1). When extracting a key, the first key with an OID matching the supplied type is used.

ARGUMENTS

The following arguments are supported: -i

Used in conjunction with -k to insert a raw key in keystore.

-f outfile

Used to specify a file to receive an extracted key.

-k key_file

Used in conjunction with -i to specify the file in which a raw key is stored. This key will be inserted in keystore.

-o type=keytype

Specifies the type of key being inserted or extracted. Must be one of 3des, aes, rsa, or sha1.

-s keystore

Specifies a repository in which a key will be inserted or from which a key will be extracted.

-x

Used in conjunction with -f to extract a key of a specified type and deposit it in outfile.

EXIT STATUS
0

Successful operation.

>0

An error occurred.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Obsolete
SEE ALSO

attributes(5)

ITU-T Recommendation X.208