openssl-skeyutl.1ossl - Man Page

opaque symmetric keys routines

Synopsis

openssl skeyutl [-help] [-cipher cipher] [-skeymgmt skeymgmt] [-skeyopt opt:value] [-genkey] [-provider name] [-provider-path path] [-provparam [name:]key=value] [-propquery propq]

Description

Not all cipher implementations support keys as raw bytes. E.g. PKCS#11 tokens can store them internally without any option to get the raw byte representation.

This tool is designed for managing opaque symmetric keys.

Options

-help

Print out a usage message.

-cipher cipher

The cipher to generate the key for.

-skeymgmt skeymgmt

Some providers may support opaque symmetric keys objects. To use them, we need to know the skeymgmt. If not specified, the name of the cipher will be used.

To find out the name of the suitable symmetric key management, please refer to the output of the openssl list -skey-managers command.

-skeyopt opt:value

To obtain an existing opaque symmetric key or to generate a new one, key options are specified as opt:value. These options can't be used together with any options implying raw key either directly or indirectly.

-genkey

Generate a new opaque key object.

-provider name
-provider-path path
-provparam [name:]key=value
-propquery propq

See "Provider Options" in openssl(1), provider(7), and property(7).

See Also

openssl-enc(1), EVP_SKEY(3)

History

The skeyutl command was added in OpenSSL 3.5.

Info

2025-03-26 3.5.0-beta1 OpenSSL