OPENSSL-PKEY(1ssl) OpenSSL OPENSSL-PKEY(1ssl) (NAME) openssl-pkey - (SYNOPSIS) openssl pkey [-help] [-engine id] [-provider name] [-provider-path path] [-provparam [name:]key=value] [-propquery propq] [-check] [-pubcheck] [-in filename|uri] [-inform DER|PEM|P12|ENGINE] [-passin arg] [-pubin] [-out filename] [-outform DER|PEM] [-cipher] [-passout arg] [-traditional] [-pubout] [-noout] [-text] [-text_pub] [-ec_conv_form arg] [-ec_param_enc arg] (DESCRIPTION) . . (OPTIONS) (General options) -help . -engine id "Engine Options" openssl(1) . . -provider name -provider-path path -provparam [name:]key=value -propquery propq "Provider Options" openssl(1) provider(7) property(7) . -check . -pubcheck . (Input options) -in filename|uri . -passin . -inform DER|PEM|P12|ENGINE . openssl-format-options(1) . -passin arg . arg openssl-passphrase-options(1) . -pubin . . . (Output options) -out filename / . . / () (truncate) . -passout . . -outform DER|PEM PEM . openssl-format-options(1) . -cipher PEM . EVP_get_cipherbyname() aes128. DER . -passout arg . arg openssl-passphrase-options(1) . -traditional : PKCS#8 ( ) . -traditional <<>> (traditional) . -pubout . . -text -text_pub . -noout . -text ( PEM). DER . -text_pub ( ). DER . -ec_conv_form arg (elliptic-curve) . (octet strings) . : compressed ( ) uncompressed hybrid. X9.62 . : () compressed OPENSSL_EC_BIN_PT_COMP . -ec_param_enc arg . . : named_curve ec OID explicit ec ( EC RFC 3279 ). named_curve . : implicitlyCA RFC 3279 OpenSSL . (EXAMPLES) : openssl pkey -in key.pem -out keyout.pem Triple DES: openssl pkey -in key.pem -des3 -out keyout.pem PEM DER: openssl pkey -in key.pem -outform DER -out keyout.der : openssl pkey -in key.pem -text -noout : openssl pkey -in key.pem -text_pub -noout : openssl pkey -in key.pem -pubout -out pubkey.pem EC explicit: openssl pkey -in key.pem -ec_param_enc explicit -out keyout.pem EC compressed: openssl pkey -in key.pem -ec_conv_form compressed -out keyout.pem (SEE ALSO) openssl(1), openssl-genpkey(1), openssl-rsa(1), openssl-pkcs8(1), openssl-dsa(1), openssl-genrsa(1), openssl-gendsa(1) (HISTORY) -engine OpenSSL 3.0 . (COPYRIGHT) Copyright 2006-2023 The OpenSSL Project Authors. All Rights Reserved. . (Apache License 2.0) (<<>>). . LICENSE . 3.6.4 2026-08-25 OPENSSL-PKEY(1ssl)