summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmc <>2016-08-24 08:07:33 +0000
committerjmc <>2016-08-24 08:07:33 +0000
commite94015ed511403d300d99176754ece1d83778e9f (patch)
tree764ea09959141efacc0e2e835ccda260f883be06
parentb07ff71525109a75dd43b4e830287a7e98fb9cec (diff)
downloadopenbsd-e94015ed511403d300d99176754ece1d83778e9f.tar.gz
openbsd-e94015ed511403d300d99176754ece1d83778e9f.tar.bz2
openbsd-e94015ed511403d300d99176754ece1d83778e9f.zip
shorten the pkey text;
-rw-r--r--src/usr.bin/openssl/openssl.198
1 files changed, 25 insertions, 73 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1
index fa5d9d641b..24987ce535 100644
--- a/src/usr.bin/openssl/openssl.1
+++ b/src/usr.bin/openssl/openssl.1
@@ -1,4 +1,4 @@
1.\" $OpenBSD: openssl.1,v 1.59 2016/08/23 18:54:04 jmc Exp $ 1.\" $OpenBSD: openssl.1,v 1.60 2016/08/24 08:07:33 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: August 23 2016 $ 115.Dd $Mdocdate: August 24 2016 $
116.Dt OPENSSL 1 116.Dt OPENSSL 1
117.Os 117.Os
118.Sh NAME 118.Sh NAME
@@ -1354,12 +1354,10 @@ The key password source.
1354.It Fl passout Ar arg 1354.It Fl passout Ar arg
1355The output file password source. 1355The output file password source.
1356.It Fl pubin 1356.It Fl pubin
1357By default, a private key is read from the input file. 1357Read in a public key, not a private key.
1358With this option a public key is read instead.
1359.It Fl pubout 1358.It Fl pubout
1360By default, a private key is output. 1359Output a public key, not a private key.
1361With this option a public key will be output instead. 1360Automatically set if the input is a public key.
1362This option is automatically set if the input is a public key.
1363.It Fl text 1361.It Fl text
1364Print the public/private key components and parameters. 1362Print the public/private key components and parameters.
1365.El 1363.El
@@ -1551,12 +1549,10 @@ The key password source.
1551.It Fl passout Ar arg 1549.It Fl passout Ar arg
1552The output file password source. 1550The output file password source.
1553.It Fl pubin 1551.It Fl pubin
1554By default a private key is read from the input file; 1552Read in a public key, not a private key.
1555with this option a public key is read instead.
1556.It Fl pubout 1553.It Fl pubout
1557By default a private key is output; 1554Output a public key, not a private key.
1558with this option a public key is output instead. 1555Automatically set if the input is a public key.
1559This option is automatically set if the input is a public key.
1560.It Fl text 1556.It Fl text
1561Print the public/private key components and parameters. 1557Print the public/private key components and parameters.
1562.El 1558.El
@@ -2856,26 +2852,21 @@ The key password source.
2856.It Fl passout Ar arg 2852.It Fl passout Ar arg
2857The output file password source. 2853The output file password source.
2858.El 2854.El
2859.\"
2860.\" PKEY
2861.\"
2862.Sh PKEY 2855.Sh PKEY
2863.nr nS 1 2856.nr nS 1
2864.Nm "openssl pkey" 2857.Nm "openssl pkey"
2865.Bk -words
2866.Op Ar cipher 2858.Op Ar cipher
2867.Op Fl in Ar file 2859.Op Fl in Ar file
2868.Op Fl inform Ar DER | PEM 2860.Op Fl inform Cm der | pem
2869.Op Fl noout 2861.Op Fl noout
2870.Op Fl out Ar file 2862.Op Fl out Ar file
2871.Op Fl outform Ar DER | PEM 2863.Op Fl outform Cm der | pem
2872.Op Fl passin Ar arg 2864.Op Fl passin Ar arg
2873.Op Fl passout Ar arg 2865.Op Fl passout Ar arg
2874.Op Fl pubin 2866.Op Fl pubin
2875.Op Fl pubout 2867.Op Fl pubout
2876.Op Fl text 2868.Op Fl text
2877.Op Fl text_pub 2869.Op Fl text_pub
2878.Ek
2879.nr nS 0 2870.nr nS 0
2880.Pp 2871.Pp
2881The 2872The
@@ -2887,81 +2878,42 @@ and their components printed out.
2887The options are as follows: 2878The options are as follows:
2888.Bl -tag -width Ds 2879.Bl -tag -width Ds
2889.It Ar cipher 2880.It Ar cipher
2890These options encrypt the private key with the supplied cipher. 2881Encrypt the private key with the specified cipher.
2891Any algorithm name accepted by 2882Any algorithm name accepted by
2892.Fn EVP_get_cipherbyname 2883.Xr EVP_get_cipherbyname 3
2893is acceptable, such as 2884is acceptable, such as
2894.Cm des3 . 2885.Cm des3 .
2895.It Fl in Ar file 2886.It Fl in Ar file
2896This specifies the input filename to read a key from, 2887The input file to read from,
2897or standard input if this option is not specified. 2888or standard input if not specified.
2898If the key is encrypted a pass phrase will be prompted for. 2889If the key is encrypted a pass phrase will be prompted for.
2899.It Fl inform Ar DER | PEM 2890.It Fl inform Cm der | pem
2900This specifies the input format, DER or PEM. 2891The input format.
2901.It Fl noout 2892.It Fl noout
2902Do not output the encoded version of the key. 2893Do not output the encoded version of the key.
2903.It Fl out Ar file 2894.It Fl out Ar file
2904This specifies the output filename to write a key to, 2895The output file to write to,
2905or standard output if this option is not specified. 2896or standard output if not specified.
2906If any encryption options are set then a pass phrase 2897If any encryption options are set then a pass phrase
2907will be prompted for. 2898will be prompted for.
2908The output filename should 2899.It Fl outform Cm der | pem
2909.Em not 2900The output format.
2910be the same as the input filename.
2911.It Fl outform Ar DER | PEM
2912This specifies the output format;
2913the options have the same meaning as the
2914.Fl inform
2915option.
2916.It Fl passin Ar arg 2901.It Fl passin Ar arg
2917The key password source. 2902The key password source.
2918.It Fl passout Ar arg 2903.It Fl passout Ar arg
2919The output file password source. 2904The output file password source.
2920.It Fl pubin 2905.It Fl pubin
2921By default a private key is read from the input file: 2906Read in a public key, not a private key.
2922with this option a public key is read instead.
2923.It Fl pubout 2907.It Fl pubout
2924By default a private key is output: 2908Output a public key, not a private key.
2925with this option a public key will be output instead. 2909Automatically set if the input is a public key.
2926This option is automatically set if
2927the input is a public key.
2928.It Fl text 2910.It Fl text
2929Print out the various public or private key components in 2911Print out the various public or private key components in plain text
2930plain text in addition to the encoded version. 2912in addition to the encoded version.
2931.It Fl text_pub 2913.It Fl text_pub
2932Print out only public key components 2914Print out only public key components
2933even if a private key is being processed. 2915even if a private key is being processed.
2934.El 2916.El
2935.Sh PKEY EXAMPLES
2936To remove the pass phrase on an RSA private key:
2937.Bd -literal -offset indent
2938$ openssl pkey -in key.pem -out keyout.pem
2939.Ed
2940.Pp
2941To encrypt a private key using triple DES:
2942.Bd -literal -offset indent
2943$ openssl pkey -in key.pem -des3 -out keyout.pem
2944.Ed
2945.Pp
2946To convert a private key from PEM to DER format:
2947.Bd -literal -offset indent
2948$ openssl pkey -in key.pem -outform DER -out keyout.der
2949.Ed
2950.Pp
2951To print the components of a private key to standard output:
2952.Bd -literal -offset indent
2953$ openssl pkey -in key.pem -text -noout
2954.Ed
2955.Pp
2956To print the public components of a private key to standard output:
2957.Bd -literal -offset indent
2958$ openssl pkey -in key.pem -text_pub -noout
2959.Ed
2960.Pp
2961To just output the public part of a private key:
2962.Bd -literal -offset indent
2963$ openssl pkey -in key.pem -pubout -out pubkey.pem
2964.Ed
2965.\" 2917.\"
2966.\" PKEYPARAM 2918.\" PKEYPARAM
2967.\" 2919.\"