diff options
author | inoguchi <> | 2019-07-07 02:04:40 +0000 |
---|---|---|
committer | inoguchi <> | 2019-07-07 02:04:40 +0000 |
commit | fde0151092090c39c777d90dc9c0b0db6a3517c2 (patch) | |
tree | 7514bd66357570282e55510fbcee74c1ddfc90b2 | |
parent | dd36ac046094b5622688c840e5eac0eeac0c132b (diff) | |
download | openbsd-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.1 | 89 |
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. | |||
428 | The newer control | 428 | The newer control |
429 | .Qq Xenroll | 429 | .Qq Xenroll |
430 | does not need this option. | 430 | does not need this option. |
431 | .It Fl multivalue\-rdn | 431 | .It Fl multivalue-rdn |
432 | This option causes the | 432 | This option causes the |
433 | .Fl subj | 433 | .Fl subj |
434 | argument to be interpreted with full support for multivalued RDNs, | 434 | argument to be interpreted with full support for multivalued RDNs, |
435 | for example | 435 | for 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" . |
437 | If | 437 | If |
438 | .Fl multivalue\-rdn | 438 | .Fl multivalue-rdn |
439 | is not used, the UID value is set to | 439 | is 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 |
2497 | The options for parsing a PKCS12 file are as follows: | 2502 | The 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 |
2500 | Encrypt private keys | 2505 | .Fl aes128 | aes192 | aes256 | |
2501 | using AES, DES, or triple DES, respectively. | 2506 | .Fl camellia128 | camellia192 | camellia256 | |
2507 | .Fl des | des3 | | ||
2508 | .Fl idea | ||
2509 | .Xc | ||
2510 | Encrypt private keys using AES, CAMELLIA, DES, triple DES | ||
2511 | or the IDEA ciphers, respectively. | ||
2502 | The default is triple DES. | 2512 | The default is triple DES. |
2503 | .It Fl cacerts | 2513 | .It Fl cacerts |
2504 | Only output CA certificates | 2514 | Only output CA certificates |
@@ -2603,6 +2613,8 @@ option marks the key for signing only. | |||
2603 | Signing only keys can be used for S/MIME signing, authenticode | 2613 | Signing only keys can be used for S/MIME signing, authenticode |
2604 | (ActiveX control signing) | 2614 | (ActiveX control signing) |
2605 | and SSL client authentication. | 2615 | and SSL client authentication. |
2616 | .It Fl LMK | ||
2617 | Add local machine keyset attribute to private key. | ||
2606 | .It Fl macalg Ar alg | 2618 | .It Fl macalg Ar alg |
2607 | Specify the MAC digest algorithm. | 2619 | Specify the MAC digest algorithm. |
2608 | The default is SHA1. | 2620 | The default is SHA1. |
@@ -2638,6 +2650,16 @@ or standard output if not specified. | |||
2638 | The key password source. | 2650 | The key password source. |
2639 | .It Fl passout Ar arg | 2651 | .It Fl passout Ar arg |
2640 | The output file password source. | 2652 | The output file password source. |
2653 | .It Fl password Ar arg | ||
2654 | With | ||
2655 | .Fl export , | ||
2656 | .Fl password | ||
2657 | is equivalent to | ||
2658 | .Fl passout . | ||
2659 | Otherwise, | ||
2660 | .Fl password | ||
2661 | is 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. | |||
3042 | For instance, DSA signatures always use SHA1. | 3067 | For instance, DSA signatures always use SHA1. |
3043 | .It Fl modulus | 3068 | .It Fl modulus |
3044 | Print the value of the modulus of the public key contained in the request. | 3069 | Print the value of the modulus of the public key contained in the request. |
3070 | .It Fl multivalue-rdn | ||
3071 | This option causes the | ||
3072 | .Fl subj | ||
3073 | argument to be interpreted with full support for multivalued RDNs, | ||
3074 | for example | ||
3075 | .Qq "/DC=org/DC=OpenSSL/DC=users/UID=123456+CN=John Doe" . | ||
3076 | If | ||
3077 | .Fl multivalue-rdn | ||
3078 | is 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 |
3046 | Determine how the subject or issuer names are displayed. | 3081 | Determine how the subject or issuer names are displayed. |
3047 | .Ar option | 3082 | .Ar option |
@@ -3112,6 +3147,11 @@ The output format. | |||
3112 | The key password source. | 3147 | The key password source. |
3113 | .It Fl passout Ar arg | 3148 | .It Fl passout Ar arg |
3114 | The output file password source. | 3149 | The output file password source. |
3150 | .It Fl pkeyopt Ar opt:value | ||
3151 | Set the public key algorithm option | ||
3152 | .Ar opt | ||
3153 | to | ||
3154 | .Ar value . | ||
3115 | .It Fl pubkey | 3155 | .It Fl pubkey |
3116 | Output the public key. | 3156 | Output 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. | |||
3130 | This may be specified as a decimal value or a hex value if preceded by | 3170 | This may be specified as a decimal value or a hex value if preceded by |
3131 | .Sq 0x . | 3171 | .Sq 0x . |
3132 | It is possible to use negative serial numbers but this is not recommended. | 3172 | It is possible to use negative serial numbers but this is not recommended. |
3173 | .It Fl sigopt Ar nm:v | ||
3174 | Pass options to the signature algorithm during sign operation. | ||
3175 | The names and values of these options are algorithm-specific. | ||
3133 | .It Fl subj Ar arg | 3176 | .It Fl subj Ar arg |
3134 | Replaces the subject field of an input request | 3177 | Replaces the subject field of an input request |
3135 | with the specified data and output the modified request. | 3178 | with 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 |
4944 | The options are as follows: | 4989 | The options are as follows: |
4945 | .Bl -tag -width Ds | 4990 | .Bl -tag -width Ds |
4946 | .It Fl check_ss_sig | ||
4947 | Verify the signature on the self-signed root CA. | ||
4948 | This is disabled by default | ||
4949 | because it doesn't add any security. | ||
4950 | .It Fl CAfile Ar file | 4991 | .It Fl CAfile Ar file |
4951 | A | 4992 | A |
4952 | .Ar file | 4993 | .Ar file |
@@ -4969,6 +5010,14 @@ is the hashed certificate subject name | |||
4969 | option of the | 5010 | option of the |
4970 | .Nm x509 | 5011 | .Nm x509 |
4971 | utility). | 5012 | utility). |
5013 | .It Fl check_ss_sig | ||
5014 | Verify the signature on the self-signed root CA. | ||
5015 | This is disabled by default | ||
5016 | because it doesn't add any security. | ||
5017 | .It Fl CRLfile Ar file | ||
5018 | The | ||
5019 | .Ar file | ||
5020 | should contain one or more CRLs in PEM format. | ||
4972 | .It Fl crl_check | 5021 | .It Fl crl_check |
4973 | Check end entity certificate validity by attempting to look up a valid CRL. | 5022 | Check end entity certificate validity by attempting to look up a valid CRL. |
4974 | If a valid CRL cannot be found an error occurs. | 5023 | If a valid CRL cannot be found an error occurs. |
@@ -5007,6 +5056,13 @@ Currently accepted uses are | |||
5007 | .Cm any , | 5056 | .Cm any , |
5008 | and | 5057 | and |
5009 | .Cm ocsphelper . | 5058 | .Cm ocsphelper . |
5059 | .It Fl trusted Ar file | ||
5060 | A | ||
5061 | .Ar file | ||
5062 | of trusted certificates. | ||
5063 | The | ||
5064 | .Ar file | ||
5065 | should contain multiple certificates. | ||
5010 | .It Fl untrusted Ar file | 5066 | .It Fl untrusted Ar file |
5011 | A | 5067 | A |
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 | |||
5572 | for 32 bits, | 5630 | for 32 bits, |
5573 | and any UTF8Strings are converted to their character form first. | 5631 | and any UTF8Strings are converted to their character form first. |
5574 | .El | 5632 | .El |
5633 | .It Fl next_serial | ||
5634 | Print the next serial number. | ||
5575 | .It Fl noout | 5635 | .It Fl noout |
5576 | Do not output the encoded version of the request. | 5636 | Do 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. | |||
5582 | Print the public key. | 5642 | Print the public key. |
5583 | .It Fl serial | 5643 | .It Fl serial |
5584 | Print the certificate serial number. | 5644 | Print the certificate serial number. |
5645 | .It Fl sigopt Ar nm:v | ||
5646 | Pass options to the signature algorithm during sign or certify operations. | ||
5647 | The names and values of these options are algorithm-specific. | ||
5585 | .It Fl startdate | 5648 | .It Fl startdate |
5586 | Print the start date of the certificate; that is, the | 5649 | Print the start date of the certificate; that is, the |
5587 | .Cm notBefore | 5650 | .Cm notBefore |