summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinoguchi <>2019-07-07 02:04:40 +0000
committerinoguchi <>2019-07-07 02:04:40 +0000
commitfde0151092090c39c777d90dc9c0b0db6a3517c2 (patch)
tree7514bd66357570282e55510fbcee74c1ddfc90b2
parentdd36ac046094b5622688c840e5eac0eeac0c132b (diff)
downloadopenbsd-fde0151092090c39c777d90dc9c0b0db6a3517c2.tar.gz
openbsd-fde0151092090c39c777d90dc9c0b0db6a3517c2.tar.bz2
openbsd-fde0151092090c39c777d90dc9c0b0db6a3517c2.zip
Fix manual openssl(1) pkcs12, req, verify and x509
- For pkcs12, add -camellia*/-idea, -LMK and -password - For req, add -multivalue-rdn, -pkeyopt and -sigopt - For verify, add -CRLfile and -trusted, and down -check_ss_sig description - For x509, add -next_serial and -sigopt - Remove the escape in -multivalue-rdn from ca section ok jmc@
-rw-r--r--src/usr.bin/openssl/openssl.189
1 files changed, 76 insertions, 13 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1
index 15910b75df..f935ab1a8a 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.106 2019/07/05 14:33:10 inoguchi Exp $ 1.\" $OpenBSD: openssl.1,v 1.107 2019/07/07 02:04:40 inoguchi 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.\"
@@ -110,7 +110,7 @@
110.\" copied and put under another distribution licence 110.\" copied and put under another distribution licence
111.\" [including the GNU Public Licence.] 111.\" [including the GNU Public Licence.]
112.\" 112.\"
113.Dd $Mdocdate: July 5 2019 $ 113.Dd $Mdocdate: July 7 2019 $
114.Dt OPENSSL 1 114.Dt OPENSSL 1
115.Os 115.Os
116.Sh NAME 116.Sh NAME
@@ -321,7 +321,7 @@ into a nested structure.
321.Op Fl keyform Cm pem | der 321.Op Fl keyform Cm pem | der
322.Op Fl md Ar alg 322.Op Fl md Ar alg
323.Op Fl msie_hack 323.Op Fl msie_hack
324.Op Fl multivalue\-rdn 324.Op Fl multivalue-rdn
325.Op Fl name Ar section 325.Op Fl name Ar section
326.Op Fl noemailDN 326.Op Fl noemailDN
327.Op Fl notext 327.Op Fl notext
@@ -428,14 +428,14 @@ its use is strongly discouraged.
428The newer control 428The newer control
429.Qq Xenroll 429.Qq Xenroll
430does not need this option. 430does not need this option.
431.It Fl multivalue\-rdn 431.It Fl multivalue-rdn
432This option causes the 432This option causes the
433.Fl subj 433.Fl subj
434argument to be interpreted with full support for multivalued RDNs, 434argument to be interpreted with full support for multivalued RDNs,
435for example 435for example
436.Qq "/DC=org/DC=OpenSSL/DC=users/UID=123456+CN=John Doe" . 436.Qq "/DC=org/DC=OpenSSL/DC=users/UID=123456+CN=John Doe" .
437If 437If
438.Fl multivalue\-rdn 438.Fl multivalue-rdn
439is not used, the UID value is set to 439is not used, the UID value is set to
440.Qq "123456+CN=John Doe" . 440.Qq "123456+CN=John Doe" .
441.It Fl name Ar section 441.It Fl name Ar section
@@ -2449,7 +2449,10 @@ It is recommended that des3 is used.
2449.Sh PKCS12 2449.Sh PKCS12
2450.nr nS 1 2450.nr nS 1
2451.Nm "openssl pkcs12" 2451.Nm "openssl pkcs12"
2452.Op Fl aes128 | aes192 | aes256 | des | des3 2452.Oo
2453.Fl aes128 | aes192 | aes256 | camellia128 |
2454.Fl camellia192 | camellia256 | des | des3 | idea
2455.Oc
2453.Op Fl cacerts 2456.Op Fl cacerts
2454.Op Fl CAfile Ar file 2457.Op Fl CAfile Ar file
2455.Op Fl caname Ar name 2458.Op Fl caname Ar name
@@ -2467,6 +2470,7 @@ It is recommended that des3 is used.
2467.Op Fl keyex 2470.Op Fl keyex
2468.Op Fl keypbe Ar alg 2471.Op Fl keypbe Ar alg
2469.Op Fl keysig 2472.Op Fl keysig
2473.Op Fl LMK
2470.Op Fl macalg Ar alg 2474.Op Fl macalg Ar alg
2471.Op Fl maciter 2475.Op Fl maciter
2472.Op Fl name Ar name 2476.Op Fl name Ar name
@@ -2481,6 +2485,7 @@ It is recommended that des3 is used.
2481.Op Fl out Ar file 2485.Op Fl out Ar file
2482.Op Fl passin Ar arg 2486.Op Fl passin Ar arg
2483.Op Fl passout Ar arg 2487.Op Fl passout Ar arg
2488.Op Fl password Ar arg
2484.Op Fl twopass 2489.Op Fl twopass
2485.nr nS 0 2490.nr nS 0
2486.Pp 2491.Pp
@@ -2496,9 +2501,14 @@ option.
2496.Pp 2501.Pp
2497The options for parsing a PKCS12 file are as follows: 2502The options for parsing a PKCS12 file are as follows:
2498.Bl -tag -width "XXXX" 2503.Bl -tag -width "XXXX"
2499.It Fl aes128 | aes192 | aes256 | des | des3 2504.It Xo
2500Encrypt private keys 2505.Fl aes128 | aes192 | aes256 |
2501using AES, DES, or triple DES, respectively. 2506.Fl camellia128 | camellia192 | camellia256 |
2507.Fl des | des3 |
2508.Fl idea
2509.Xc
2510Encrypt private keys using AES, CAMELLIA, DES, triple DES
2511or the IDEA ciphers, respectively.
2502The default is triple DES. 2512The default is triple DES.
2503.It Fl cacerts 2513.It Fl cacerts
2504Only output CA certificates 2514Only output CA certificates
@@ -2603,6 +2613,8 @@ option marks the key for signing only.
2603Signing only keys can be used for S/MIME signing, authenticode 2613Signing only keys can be used for S/MIME signing, authenticode
2604(ActiveX control signing) 2614(ActiveX control signing)
2605and SSL client authentication. 2615and SSL client authentication.
2616.It Fl LMK
2617Add local machine keyset attribute to private key.
2606.It Fl macalg Ar alg 2618.It Fl macalg Ar alg
2607Specify the MAC digest algorithm. 2619Specify the MAC digest algorithm.
2608The default is SHA1. 2620The default is SHA1.
@@ -2638,6 +2650,16 @@ or standard output if not specified.
2638The key password source. 2650The key password source.
2639.It Fl passout Ar arg 2651.It Fl passout Ar arg
2640The output file password source. 2652The output file password source.
2653.It Fl password Ar arg
2654With
2655.Fl export ,
2656.Fl password
2657is equivalent to
2658.Fl passout .
2659Otherwise,
2660.Fl password
2661is equivalent to
2662.Fl passin .
2641.El 2663.El
2642.Sh PKEY 2664.Sh PKEY
2643.nr nS 1 2665.nr nS 1
@@ -2959,6 +2981,7 @@ or standard output if not specified.
2959.Op Fl keyout Ar file 2981.Op Fl keyout Ar file
2960.Op Fl md4 | md5 | sha1 2982.Op Fl md4 | md5 | sha1
2961.Op Fl modulus 2983.Op Fl modulus
2984.Op Fl multivalue-rdn
2962.Op Fl nameopt Ar option 2985.Op Fl nameopt Ar option
2963.Op Fl new 2986.Op Fl new
2964.Op Fl newhdr 2987.Op Fl newhdr
@@ -2970,10 +2993,12 @@ or standard output if not specified.
2970.Op Fl outform Cm der | pem 2993.Op Fl outform Cm der | pem
2971.Op Fl passin Ar arg 2994.Op Fl passin Ar arg
2972.Op Fl passout Ar arg 2995.Op Fl passout Ar arg
2996.Op Fl pkeyopt Ar opt:value
2973.Op Fl pubkey 2997.Op Fl pubkey
2974.Op Fl reqexts Ar section 2998.Op Fl reqexts Ar section
2975.Op Fl reqopt Ar option 2999.Op Fl reqopt Ar option
2976.Op Fl set_serial Ar n 3000.Op Fl set_serial Ar n
3001.Op Fl sigopt Ar nm:v
2977.Op Fl subj Ar arg 3002.Op Fl subj Ar arg
2978.Op Fl subject 3003.Op Fl subject
2979.Op Fl text 3004.Op Fl text
@@ -3042,6 +3067,16 @@ Some public key algorithms may override this choice.
3042For instance, DSA signatures always use SHA1. 3067For instance, DSA signatures always use SHA1.
3043.It Fl modulus 3068.It Fl modulus
3044Print the value of the modulus of the public key contained in the request. 3069Print the value of the modulus of the public key contained in the request.
3070.It Fl multivalue-rdn
3071This option causes the
3072.Fl subj
3073argument to be interpreted with full support for multivalued RDNs,
3074for example
3075.Qq "/DC=org/DC=OpenSSL/DC=users/UID=123456+CN=John Doe" .
3076If
3077.Fl multivalue-rdn
3078is not used, the UID value is set to
3079.Qq "123456+CN=John Doe" .
3045.It Fl nameopt Ar option , Fl reqopt Ar option 3080.It Fl nameopt Ar option , Fl reqopt Ar option
3046Determine how the subject or issuer names are displayed. 3081Determine how the subject or issuer names are displayed.
3047.Ar option 3082.Ar option
@@ -3112,6 +3147,11 @@ The output format.
3112The key password source. 3147The key password source.
3113.It Fl passout Ar arg 3148.It Fl passout Ar arg
3114The output file password source. 3149The output file password source.
3150.It Fl pkeyopt Ar opt:value
3151Set the public key algorithm option
3152.Ar opt
3153to
3154.Ar value .
3115.It Fl pubkey 3155.It Fl pubkey
3116Output the public key. 3156Output the public key.
3117.It Fl reqopt Ar option 3157.It Fl reqopt Ar option
@@ -3130,6 +3170,9 @@ Serial number to use when outputting a self-signed certificate.
3130This may be specified as a decimal value or a hex value if preceded by 3170This may be specified as a decimal value or a hex value if preceded by
3131.Sq 0x . 3171.Sq 0x .
3132It is possible to use negative serial numbers but this is not recommended. 3172It is possible to use negative serial numbers but this is not recommended.
3173.It Fl sigopt Ar nm:v
3174Pass options to the signature algorithm during sign operation.
3175The names and values of these options are algorithm-specific.
3133.It Fl subj Ar arg 3176.It Fl subj Ar arg
3134Replaces the subject field of an input request 3177Replaces the subject field of an input request
3135with the specified data and output the modified request. 3178with the specified data and output the modified request.
@@ -4920,6 +4963,7 @@ The default is no.
4920.Op Fl CAfile Ar file 4963.Op Fl CAfile Ar file
4921.Op Fl CApath Ar directory 4964.Op Fl CApath Ar directory
4922.Op Fl check_ss_sig 4965.Op Fl check_ss_sig
4966.Op Fl CRLfile Ar file
4923.Op Fl crl_check 4967.Op Fl crl_check
4924.Op Fl crl_check_all 4968.Op Fl crl_check_all
4925.Op Fl explicit_policy 4969.Op Fl explicit_policy
@@ -4931,6 +4975,7 @@ The default is no.
4931.Op Fl issuer_checks 4975.Op Fl issuer_checks
4932.Op Fl policy_check 4976.Op Fl policy_check
4933.Op Fl purpose Ar purpose 4977.Op Fl purpose Ar purpose
4978.Op Fl trusted Ar file
4934.Op Fl untrusted Ar file 4979.Op Fl untrusted Ar file
4935.Op Fl verbose 4980.Op Fl verbose
4936.Op Fl x509_strict 4981.Op Fl x509_strict
@@ -4943,10 +4988,6 @@ command verifies certificate chains.
4943.Pp 4988.Pp
4944The options are as follows: 4989The options are as follows:
4945.Bl -tag -width Ds 4990.Bl -tag -width Ds
4946.It Fl check_ss_sig
4947Verify the signature on the self-signed root CA.
4948This is disabled by default
4949because it doesn't add any security.
4950.It Fl CAfile Ar file 4991.It Fl CAfile Ar file
4951A 4992A
4952.Ar file 4993.Ar file
@@ -4969,6 +5010,14 @@ is the hashed certificate subject name
4969option of the 5010option of the
4970.Nm x509 5011.Nm x509
4971utility). 5012utility).
5013.It Fl check_ss_sig
5014Verify the signature on the self-signed root CA.
5015This is disabled by default
5016because it doesn't add any security.
5017.It Fl CRLfile Ar file
5018The
5019.Ar file
5020should contain one or more CRLs in PEM format.
4972.It Fl crl_check 5021.It Fl crl_check
4973Check end entity certificate validity by attempting to look up a valid CRL. 5022Check end entity certificate validity by attempting to look up a valid CRL.
4974If a valid CRL cannot be found an error occurs. 5023If a valid CRL cannot be found an error occurs.
@@ -5007,6 +5056,13 @@ Currently accepted uses are
5007.Cm any , 5056.Cm any ,
5008and 5057and
5009.Cm ocsphelper . 5058.Cm ocsphelper .
5059.It Fl trusted Ar file
5060A
5061.Ar file
5062of trusted certificates.
5063The
5064.Ar file
5065should contain multiple certificates.
5010.It Fl untrusted Ar file 5066.It Fl untrusted Ar file
5011A 5067A
5012.Ar file 5068.Ar file
@@ -5292,6 +5348,7 @@ version.
5292.Op Fl md5 | sha1 5348.Op Fl md5 | sha1
5293.Op Fl modulus 5349.Op Fl modulus
5294.Op Fl nameopt Ar option 5350.Op Fl nameopt Ar option
5351.Op Fl next_serial
5295.Op Fl noout 5352.Op Fl noout
5296.Op Fl ocsp_uri 5353.Op Fl ocsp_uri
5297.Op Fl ocspid 5354.Op Fl ocspid
@@ -5305,6 +5362,7 @@ version.
5305.Op Fl set_serial Ar n 5362.Op Fl set_serial Ar n
5306.Op Fl setalias Ar arg 5363.Op Fl setalias Ar arg
5307.Op Fl signkey Ar file 5364.Op Fl signkey Ar file
5365.Op Fl sigopt Ar nm:v
5308.Op Fl startdate 5366.Op Fl startdate
5309.Op Fl subject 5367.Op Fl subject
5310.Op Fl subject_hash 5368.Op Fl subject_hash
@@ -5572,6 +5630,8 @@ are represented using the format \eUXXXX for 16 bits and \eWXXXXXXXX
5572for 32 bits, 5630for 32 bits,
5573and any UTF8Strings are converted to their character form first. 5631and any UTF8Strings are converted to their character form first.
5574.El 5632.El
5633.It Fl next_serial
5634Print the next serial number.
5575.It Fl noout 5635.It Fl noout
5576Do not output the encoded version of the request. 5636Do not output the encoded version of the request.
5577.It Fl ocsp_uri 5637.It Fl ocsp_uri
@@ -5582,6 +5642,9 @@ Print OCSP hash values for the subject name and public key.
5582Print the public key. 5642Print the public key.
5583.It Fl serial 5643.It Fl serial
5584Print the certificate serial number. 5644Print the certificate serial number.
5645.It Fl sigopt Ar nm:v
5646Pass options to the signature algorithm during sign or certify operations.
5647The names and values of these options are algorithm-specific.
5585.It Fl startdate 5648.It Fl startdate
5586Print the start date of the certificate; that is, the 5649Print the start date of the certificate; that is, the
5587.Cm notBefore 5650.Cm notBefore