Lines Matching +full:- +full:- +full:arg +full:- +full:file
1 .\" -*- mode: troff; coding: utf-8 -*-
57 .IX Title "OPENSSL-PKEY 1ossl"
58 .TH OPENSSL-PKEY 1ossl 2025-09-30 3.5.4 OpenSSL
64 openssl\-pkey \- public or private key processing command
68 [\fB\-help\fR]
69 [\fB\-engine\fR \fIid\fR]
70 [\fB\-provider\fR \fIname\fR]
71 [\fB\-provider\-path\fR \fIpath\fR]
72 [\fB\-provparam\fR \fI[name:]key=value\fR]
73 [\fB\-propquery\fR \fIpropq\fR]
74 [\fB\-check\fR]
75 [\fB\-pubcheck\fR]
76 [\fB\-in\fR \fIfilename\fR|\fIuri\fR]
77 [\fB\-inform\fR \fBDER\fR|\fBPEM\fR|\fBP12\fR|\fBENGINE\fR]
78 [\fB\-passin\fR \fIarg\fR]
79 [\fB\-pubin\fR]
80 [\fB\-out\fR \fIfilename\fR]
81 [\fB\-outform\fR \fBDER\fR|\fBPEM\fR]
82 [\fB\-\fR\f(BIcipher\fR]
83 [\fB\-passout\fR \fIarg\fR]
84 [\fB\-traditional\fR]
85 [\fB\-pubout\fR]
86 [\fB\-noout\fR]
87 [\fB\-text\fR]
88 [\fB\-text_pub\fR]
89 [\fB\-ec_conv_form\fR \fIarg\fR]
90 [\fB\-ec_param_enc\fR \fIarg\fR]
99 .IP \fB\-help\fR 4
100 .IX Item "-help"
102 .IP "\fB\-engine\fR \fIid\fR" 4
103 .IX Item "-engine id"
106 .IP "\fB\-provider\fR \fIname\fR" 4
107 .IX Item "-provider name"
109 .IP "\fB\-provider\-path\fR \fIpath\fR" 4
110 .IX Item "-provider-path path"
111 .IP "\fB\-provparam\fR \fI[name:]key=value\fR" 4
112 .IX Item "-provparam [name:]key=value"
113 .IP "\fB\-propquery\fR \fIpropq\fR" 4
114 .IX Item "-propquery propq"
117 .IP \fB\-check\fR 4
118 .IX Item "-check"
121 .IP \fB\-pubcheck\fR 4
122 .IX Item "-pubcheck"
127 .IP "\fB\-in\fR \fIfilename\fR|\fIuri\fR" 4
128 .IX Item "-in filename|uri"
129 This specifies the input file to read a key from
132 If the key input is encrypted and \fB\-passin\fR is not given
134 .IP "\fB\-inform\fR \fBDER\fR|\fBPEM\fR|\fBP12\fR|\fBENGINE\fR" 4
135 .IX Item "-inform DER|PEM|P12|ENGINE"
137 See \fBopenssl\-format\-options\fR\|(1) for details.
138 .IP "\fB\-passin\fR \fIarg\fR" 4
139 .IX Item "-passin arg"
142 For more information about the format of \fBarg\fR
143 see \fBopenssl\-passphrase\-options\fR\|(1).
144 .IP \fB\-pubin\fR 4
145 .IX Item "-pubin"
151 .IP "\fB\-out\fR \fIfilename\fR" 4
152 .IX Item "-out filename"
153 This specifies the output file to save the encoded and/or text output of key
156 which leads to replacing the file contents.
157 Note that file I/O is not atomic. The output file is truncated and then written.
159 If any cipher option is set but no \fB\-passout\fR is given
161 When password input is interrupted, the output file is not touched.
162 .IP "\fB\-outform\fR \fBDER\fR|\fBPEM\fR" 4
163 .IX Item "-outform DER|PEM"
165 See \fBopenssl\-format\-options\fR\|(1) for details.
166 .IP \fB\-\fR\f(BIcipher\fR 4
167 .IX Item "-cipher"
171 .IP "\fB\-passout\fR \fIarg\fR" 4
172 .IX Item "-passout arg"
173 The password source for the output file.
175 For more information about the format of \fBarg\fR
176 see \fBopenssl\-passphrase\-options\fR\|(1).
177 .IP \fB\-traditional\fR 4
178 .IX Item "-traditional"
180 with the appropriate encryption algorithm (if any). If the \fB\-traditional\fR
182 .IP \fB\-pubout\fR 4
183 .IX Item "-pubout"
188 When combined with \fB\-text\fR, this is equivalent to \fB\-text_pub\fR.
189 .IP \fB\-noout\fR 4
190 .IX Item "-noout"
192 .IP \fB\-text\fR 4
193 .IX Item "-text"
197 .IP \fB\-text_pub\fR 4
198 .IX Item "-text_pub"
201 .IP "\fB\-ec_conv_form\fR \fIarg\fR" 4
202 .IX Item "-ec_conv_form arg"
203 This option only applies to elliptic-curve based keys.
212 .IP "\fB\-ec_param_enc\fR \fIarg\fR" 4
213 .IX Item "-ec_param_enc arg"
228 \& openssl pkey \-in key.pem \-out keyout.pem
234 \& openssl pkey \-in key.pem \-des3 \-out keyout.pem
240 \& openssl pkey \-in key.pem \-outform DER \-out keyout.der
246 \& openssl pkey \-in key.pem \-text \-noout
252 \& openssl pkey \-in key.pem \-text_pub \-noout
258 \& openssl pkey \-in key.pem \-pubout \-out pubkey.pem
264 \& openssl pkey \-in key.pem \-ec_param_enc explicit \-out keyout.pem
270 \& openssl pkey \-in key.pem \-ec_conv_form compressed \-out keyout.pem
275 \&\fBopenssl\-genpkey\fR\|(1),
276 \&\fBopenssl\-rsa\fR\|(1),
277 \&\fBopenssl\-pkcs8\fR\|(1),
278 \&\fBopenssl\-dsa\fR\|(1),
279 \&\fBopenssl\-genrsa\fR\|(1),
280 \&\fBopenssl\-gendsa\fR\|(1)
283 The \fB\-engine\fR option was deprecated in OpenSSL 3.0.
286 Copyright 2006\-2023 The OpenSSL Project Authors. All Rights Reserved.
289 this file except in compliance with the License. You can obtain a copy
290 in the file LICENSE in the source distribution or at