summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjmc <>2010-10-13 15:38:56 +0000
committerjmc <>2010-10-13 15:38:56 +0000
commit1b3fae11c839309a3373f1a74d0de8ce866d3860 (patch)
treeffaf62a39dbc966e36988ba2a3dcecf5fe0cb156 /src
parentece3cf542b143293343f3e71053e2eb7c6b40b87 (diff)
downloadopenbsd-1b3fae11c839309a3373f1a74d0de8ce866d3860.tar.gz
openbsd-1b3fae11c839309a3373f1a74d0de8ce866d3860.tar.bz2
openbsd-1b3fae11c839309a3373f1a74d0de8ce866d3860.zip
document "openssl pkeyparam";
Diffstat (limited to 'src')
-rw-r--r--src/usr.sbin/openssl/openssl.160
1 files changed, 54 insertions, 6 deletions
diff --git a/src/usr.sbin/openssl/openssl.1 b/src/usr.sbin/openssl/openssl.1
index ce075f1300..688df9d8c5 100644
--- a/src/usr.sbin/openssl/openssl.1
+++ b/src/usr.sbin/openssl/openssl.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: openssl.1,v 1.75 2010/10/12 18:36:03 jmc Exp $ 1.\" $OpenBSD: openssl.1,v 1.76 2010/10/13 15:38:56 jmc Exp $
2.\" ==================================================================== 2.\" ====================================================================
3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. 3.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
4.\" 4.\"
@@ -112,7 +112,7 @@
112.\" 112.\"
113.\" OPENSSL 113.\" OPENSSL
114.\" 114.\"
115.Dd $Mdocdate: October 12 2010 $ 115.Dd $Mdocdate: October 13 2010 $
116.Dt OPENSSL 1 116.Dt OPENSSL 1
117.Os 117.Os
118.Sh NAME 118.Sh NAME
@@ -318,6 +318,8 @@ PKCS#8 data management.
318PKCS#12 data management. 318PKCS#12 data management.
319.It Cm pkey 319.It Cm pkey
320Public and private key management. 320Public and private key management.
321.It Cm pkeyparam
322Public key algorithm parameter management.
321.It Cm pkeyutl 323.It Cm pkeyutl
322Public key algorithm cryptographic operation utility. 324Public key algorithm cryptographic operation utility.
323.It Cm rand 325.It Cm rand
@@ -5034,9 +5036,9 @@ $ openssl -in keycerts.pem -export -name "My PKCS#12 file" \e
5034.Op Fl text 5036.Op Fl text
5035.Op Fl text_pub 5037.Op Fl text_pub
5036.Op Fl engine Ar id 5038.Op Fl engine Ar id
5037.Op Fl in Ar filename 5039.Op Fl in Ar file
5038.Op Fl inform Ar DER | PEM 5040.Op Fl inform Ar DER | PEM
5039.Op Fl out Ar filename 5041.Op Fl out Ar file
5040.Op Fl outform Ar DER | PEM 5042.Op Fl outform Ar DER | PEM
5041.Op Fl passin Ar arg 5043.Op Fl passin Ar arg
5042.Op Fl passout Ar arg 5044.Op Fl passout Ar arg
@@ -5065,7 +5067,7 @@ to attempt to obtain a functional reference to the specified engine,
5065thus initialising it if needed. 5067thus initialising it if needed.
5066The engine will then be set as the default 5068The engine will then be set as the default
5067for all available algorithms. 5069for all available algorithms.
5068.It Fl in Ar filename 5070.It Fl in Ar file
5069This specifies the input filename to read a key from, 5071This specifies the input filename to read a key from,
5070or standard input if this option is not specified. 5072or standard input if this option is not specified.
5071If the key is encrypted a pass phrase will be prompted for. 5073If the key is encrypted a pass phrase will be prompted for.
@@ -5073,7 +5075,7 @@ If the key is encrypted a pass phrase will be prompted for.
5073This specifies the input format, DER or PEM. 5075This specifies the input format, DER or PEM.
5074.It Fl noout 5076.It Fl noout
5075Do not output the encoded version of the key. 5077Do not output the encoded version of the key.
5076.It Fl out Ar filename 5078.It Fl out Ar file
5077This specifies the output filename to write a key to, 5079This specifies the output filename to write a key to,
5078or standard output if this option is not specified. 5080or standard output if this option is not specified.
5079If any encryption options are set then a pass phrase 5081If any encryption options are set then a pass phrase
@@ -5146,6 +5148,52 @@ To just output the public part of a private key:
5146$ openssl pkey -in key.pem -pubout -out pubkey.pem 5148$ openssl pkey -in key.pem -pubout -out pubkey.pem
5147.Ed 5149.Ed
5148.\" 5150.\"
5151.\" PKEYPARAM
5152.\"
5153.Sh PKEYPARAM
5154.Cm openssl pkeyparam
5155.Op Fl noout
5156.Op Fl text
5157.Op Fl engine Ar id
5158.Op Fl in Ar file
5159.Op Fl out Ar file
5160.Pp
5161The
5162.Nm pkey
5163command processes public or private keys.
5164They can be converted between various forms and their components printed out.
5165.Pp
5166The options are as follows:
5167.Bl -tag -width Ds
5168.It Fl engine Ar id
5169Specifying an engine (by its unique
5170.Ar id
5171string) will cause
5172.Nm pkeyparam
5173to attempt to obtain a functional reference to the specified engine,
5174thus initialising it if needed.
5175The engine will then be set as the default
5176for all available algorithms.
5177.It Fl in Ar file
5178This specifies the input filename to read parameters from,
5179or standard input if this option is not specified.
5180.It Fl noout
5181Do not output the encoded version of the parameters.
5182.It Fl out Ar file
5183This specifies the output filename to write parameters to,
5184or standard output if this option is not specified.
5185.It Fl text
5186Prints out the parameters in plain text in addition to the encoded version.
5187.El
5188.Sh PKEYPARAM EXAMPLES
5189Print out text version of parameters:
5190.Bd -literal -offset indent
5191$ openssl pkeyparam -in param.pem -text
5192.Ed
5193.Sh PKEYPARAM NOTES
5194There are no B<-inform> or B<-outform> options for this command because only
5195PEM format is supported because the key type is determined by the PEM headers.
5196.\"
5149.\" PKEYUTL 5197.\" PKEYUTL
5150.\" 5198.\"
5151.Sh PKEYUTL 5199.Sh PKEYUTL