summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichael Baentsch <57787676+baentsch@users.noreply.github.com>2023-09-22 17:52:09 +0200
committerDmitry Belyavskiy <beldmit@gmail.com>2023-09-24 20:51:42 +0200
commit6c03fa21ed4bbc9fd6d3013fdf9f4646d231f831 (patch)
tree991eabe28a9a72a3aaa9332d88ac9584a1e925c0 /doc
parent1acc3e8cc3c69187b55cc557c1bc03278ab38063 (diff)
adding -outpubkey option to genpkey
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22173)
Diffstat (limited to 'doc')
-rw-r--r--doc/man1/openssl-genpkey.pod.in18
1 files changed, 12 insertions, 6 deletions
diff --git a/doc/man1/openssl-genpkey.pod.in b/doc/man1/openssl-genpkey.pod.in
index e760d613fe..aa0b74e8aa 100644
--- a/doc/man1/openssl-genpkey.pod.in
+++ b/doc/man1/openssl-genpkey.pod.in
@@ -7,13 +7,14 @@
=head1 NAME
-openssl-genpkey - generate a private key
+openssl-genpkey - generate a private key or key pair
=head1 SYNOPSIS
B<openssl> B<genpkey>
[B<-help>]
[B<-out> I<filename>]
+[B<-outpubkey> I<filename>]
[B<-outform> B<DER>|B<PEM>]
[B<-verbose>]
[B<-quiet>]
@@ -29,7 +30,7 @@ B<openssl> B<genpkey>
=head1 DESCRIPTION
-This command generates a private key.
+This command generates a private key or key pair.
=head1 OPTIONS
@@ -41,8 +42,13 @@ Print out a usage message.
=item B<-out> I<filename>
-Output the key to the specified file. If this argument is not specified then
-standard output is used.
+Output the private key to the specified file. If this argument is not
+specified then standard output is used.
+
+=item B<-outpubkey> I<filename>
+
+Output the public key to the specified file. If this argument is not
+specified then the public key is not output.
=item B<-outform> B<DER>|B<PEM>
@@ -73,8 +79,8 @@ name accepted by EVP_get_cipherbyname() is acceptable such as B<des3>.
Public key algorithm to use such as RSA, DSA, DH or DHX. If used this option must
precede any B<-pkeyopt> options. The options B<-paramfile> and B<-algorithm>
-are mutually exclusive. Engines may add algorithms in addition to the standard
-built-in ones.
+are mutually exclusive. Engines or providers may add algorithms in addition to
+the standard built-in ones.
Valid built-in algorithm names for private key generation are RSA, RSA-PSS, EC,
X25519, X448, ED25519 and ED448.