diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr.bin/openssl/openssl.1 | 484 |
1 files changed, 57 insertions, 427 deletions
diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1 index 8c3140de68..cad60f2670 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.32 2016/02/12 13:03:19 jmc Exp $ | 1 | .\" $OpenBSD: openssl.1,v 1.33 2016/07/16 07:27:53 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: February 12 2016 $ | 115 | .Dd $Mdocdate: July 16 2016 $ |
| 116 | .Dt OPENSSL 1 | 116 | .Dt OPENSSL 1 |
| 117 | .Os | 117 | .Os |
| 118 | .Sh NAME | 118 | .Sh NAME |
| @@ -147,43 +147,8 @@ The | |||
| 147 | .Nm | 147 | .Nm |
| 148 | program is a command line tool for using the various | 148 | program is a command line tool for using the various |
| 149 | cryptography functions of | 149 | cryptography functions of |
| 150 | .Nm OpenSSL Ns Li 's | 150 | .Nm OpenSSL Ns 's |
| 151 | .Em crypto | 151 | crypto library from the shell. |
| 152 | library from the shell. | ||
| 153 | It can be used for | ||
| 154 | .Pp | ||
| 155 | .Bl -bullet -offset indent -compact | ||
| 156 | .It | ||
| 157 | Creation and management of private keys, public keys, and parameters | ||
| 158 | .It | ||
| 159 | Public key cryptographic operations | ||
| 160 | .It | ||
| 161 | Creation of X.509 certificates, CSRs and CRLs | ||
| 162 | .It | ||
| 163 | Calculation of Message Digests | ||
| 164 | .It | ||
| 165 | Encryption and Decryption with Ciphers | ||
| 166 | .It | ||
| 167 | SSL/TLS Client and Server Tests | ||
| 168 | .It | ||
| 169 | Handling of S/MIME signed or encrypted mail | ||
| 170 | .It | ||
| 171 | Time stamp requests, generation, and verification | ||
| 172 | .El | ||
| 173 | .Sh COMMAND SUMMARY | ||
| 174 | The | ||
| 175 | .Nm | ||
| 176 | program provides a rich variety of commands | ||
| 177 | .Pf ( Cm command | ||
| 178 | in the | ||
| 179 | .Sx SYNOPSIS | ||
| 180 | above), | ||
| 181 | each of which often has a wealth of options and arguments | ||
| 182 | .Pf ( Ar command_opts | ||
| 183 | and | ||
| 184 | .Ar command_args | ||
| 185 | in the | ||
| 186 | .Sx SYNOPSIS ) . | ||
| 187 | .Pp | 152 | .Pp |
| 188 | The pseudo-commands | 153 | The pseudo-commands |
| 189 | .Cm list-standard-commands , list-message-digest-commands , | 154 | .Cm list-standard-commands , list-message-digest-commands , |
| @@ -204,7 +169,7 @@ list all cipher and message digest names, | |||
| 204 | one entry per line. | 169 | one entry per line. |
| 205 | Aliases are listed as: | 170 | Aliases are listed as: |
| 206 | .Pp | 171 | .Pp |
| 207 | .D1 from =\*(Gt to | 172 | .D1 from => to |
| 208 | .Pp | 173 | .Pp |
| 209 | The pseudo-command | 174 | The pseudo-command |
| 210 | .Cm list-public-key-algorithms | 175 | .Cm list-public-key-algorithms |
| @@ -242,263 +207,6 @@ is not able to detect pseudo-commands such as | |||
| 242 | or | 207 | or |
| 243 | .Cm no- Ns Ar XXX | 208 | .Cm no- Ns Ar XXX |
| 244 | itself. | 209 | itself. |
| 245 | .Sh STANDARD COMMANDS | ||
| 246 | .Bl -tag -width "asn1parse" | ||
| 247 | .It Cm asn1parse | ||
| 248 | Parse an ASN.1 sequence. | ||
| 249 | .It Cm ca | ||
| 250 | Certificate Authority | ||
| 251 | .Pq CA | ||
| 252 | management. | ||
| 253 | .It Cm ciphers | ||
| 254 | Cipher suite description determination. | ||
| 255 | .It Cm crl | ||
| 256 | Certificate Revocation List | ||
| 257 | .Pq CRL | ||
| 258 | management. | ||
| 259 | .It Cm crl2pkcs7 | ||
| 260 | CRL to PKCS#7 conversion. | ||
| 261 | .It Cm dgst | ||
| 262 | Message digest calculation. | ||
| 263 | .It Cm dh | ||
| 264 | Diffie-Hellman parameter management. | ||
| 265 | Obsoleted by | ||
| 266 | .Cm dhparam . | ||
| 267 | .It Cm dhparam | ||
| 268 | Generation and management of Diffie-Hellman parameters. | ||
| 269 | Superseded by | ||
| 270 | .Cm genpkey | ||
| 271 | and | ||
| 272 | .Cm pkeyparam . | ||
| 273 | .It Cm dsa | ||
| 274 | DSA data management. | ||
| 275 | .It Cm dsaparam | ||
| 276 | DSA parameter generation and management. | ||
| 277 | Superseded by | ||
| 278 | .Cm genpkey | ||
| 279 | and | ||
| 280 | .Cm pkeyparam . | ||
| 281 | .It Cm ec | ||
| 282 | Elliptic curve (EC) key processing. | ||
| 283 | .It Cm ecparam | ||
| 284 | EC parameter manipulation and generation. | ||
| 285 | .It Cm enc | ||
| 286 | Encoding with ciphers. | ||
| 287 | .It Cm errstr | ||
| 288 | Error number to error string conversion. | ||
| 289 | .It Cm gendh | ||
| 290 | Generation of Diffie-Hellman parameters. | ||
| 291 | Obsoleted by | ||
| 292 | .Cm dhparam . | ||
| 293 | .It Cm gendsa | ||
| 294 | Generation of DSA private key from parameters. | ||
| 295 | Superseded by | ||
| 296 | .Cm genpkey | ||
| 297 | and | ||
| 298 | .Cm pkey . | ||
| 299 | .It Cm genpkey | ||
| 300 | Generation of private keys or parameters. | ||
| 301 | .It Cm genrsa | ||
| 302 | Generation of RSA private key. | ||
| 303 | Superseded by | ||
| 304 | .Cm genpkey . | ||
| 305 | .It Cm nseq | ||
| 306 | Create or examine a Netscape certificate sequence. | ||
| 307 | .It Cm ocsp | ||
| 308 | Online Certificate Status Protocol utility. | ||
| 309 | .It Cm passwd | ||
| 310 | Generation of hashed passwords. | ||
| 311 | .It Cm pkcs7 | ||
| 312 | PKCS#7 data management. | ||
| 313 | .It Cm pkcs8 | ||
| 314 | PKCS#8 data management. | ||
| 315 | .It Cm pkcs12 | ||
| 316 | PKCS#12 data management. | ||
| 317 | .It Cm pkey | ||
| 318 | Public and private key management. | ||
| 319 | .It Cm pkeyparam | ||
| 320 | Public key algorithm parameter management. | ||
| 321 | .It Cm pkeyutl | ||
| 322 | Public key algorithm cryptographic operation utility. | ||
| 323 | .It Cm prime | ||
| 324 | Generate prime numbers or test numbers for primality. | ||
| 325 | .It Cm rand | ||
| 326 | Generate pseudo-random bytes. | ||
| 327 | .It Cm req | ||
| 328 | PKCS#10 X.509 Certificate Signing Request | ||
| 329 | .Pq CSR | ||
| 330 | management. | ||
| 331 | .It Cm rsa | ||
| 332 | RSA key management. | ||
| 333 | .It Cm rsautl | ||
| 334 | RSA utility for signing, verification, encryption, and decryption. | ||
| 335 | Superseded by | ||
| 336 | .Cm pkeyutl . | ||
| 337 | .It Cm s_client | ||
| 338 | This implements a generic SSL/TLS client which can establish a transparent | ||
| 339 | connection to a remote server speaking SSL/TLS. | ||
| 340 | It's intended for testing purposes only and provides only rudimentary | ||
| 341 | interface functionality but internally uses mostly all functionality of the | ||
| 342 | .Nm OpenSSL | ||
| 343 | .Em ssl | ||
| 344 | library. | ||
| 345 | .It Cm s_server | ||
| 346 | This implements a generic SSL/TLS server which accepts connections from remote | ||
| 347 | clients speaking SSL/TLS. | ||
| 348 | It's intended for testing purposes only and provides only rudimentary | ||
| 349 | interface functionality but internally uses mostly all functionality of the | ||
| 350 | .Nm OpenSSL | ||
| 351 | .Em ssl | ||
| 352 | library. | ||
| 353 | It provides both an own command line oriented protocol for testing | ||
| 354 | SSL functions and a simple HTTP response | ||
| 355 | facility to emulate an SSL/TLS-aware webserver. | ||
| 356 | .It Cm s_time | ||
| 357 | SSL connection timer. | ||
| 358 | .It Cm sess_id | ||
| 359 | SSL session data management. | ||
| 360 | .It Cm smime | ||
| 361 | S/MIME mail processing. | ||
| 362 | .It Cm speed | ||
| 363 | Algorithm speed measurement. | ||
| 364 | .It Cm spkac | ||
| 365 | SPKAC printing and generating utility. | ||
| 366 | .It Cm ts | ||
| 367 | Time stamping authority tool (client/server). | ||
| 368 | .It Cm verify | ||
| 369 | X.509 certificate verification. | ||
| 370 | .It Cm version | ||
| 371 | .Nm OpenSSL | ||
| 372 | version information. | ||
| 373 | .It Cm x509 | ||
| 374 | X.509 certificate data management. | ||
| 375 | .El | ||
| 376 | .Sh MESSAGE DIGEST COMMANDS | ||
| 377 | .Bl -tag -width "streebog512" | ||
| 378 | .It Cm gost-mac | ||
| 379 | GOST-MAC digest. | ||
| 380 | .It Cm streebog256 | ||
| 381 | Streebog-256 digest. | ||
| 382 | .It Cm streebog512 | ||
| 383 | Streebog-512 digest. | ||
| 384 | .It Cm md_gost94 | ||
| 385 | GOST R 34.11-94 digest. | ||
| 386 | .It Cm md4 | ||
| 387 | MD4 digest. | ||
| 388 | .It Cm md5 | ||
| 389 | MD5 digest. | ||
| 390 | .It Cm ripemd160 | ||
| 391 | RIPEMD-160 digest. | ||
| 392 | .It Cm sha | ||
| 393 | SHA digest. | ||
| 394 | .It Cm sha1 | ||
| 395 | SHA-1 digest. | ||
| 396 | .It Cm sha224 | ||
| 397 | SHA-224 digest. | ||
| 398 | .It Cm sha256 | ||
| 399 | SHA-256 digest. | ||
| 400 | .It Cm sha384 | ||
| 401 | SHA-384 digest. | ||
| 402 | .It Cm sha512 | ||
| 403 | SHA-512 digest. | ||
| 404 | .It Cm whirlpool | ||
| 405 | Whirlpool digest. | ||
| 406 | .El | ||
| 407 | .Sh ENCODING AND CIPHER COMMANDS | ||
| 408 | .Bl -tag -width Ds -compact | ||
| 409 | .It Cm aes-128-cbc | aes-128-ecb | aes-192-cbc | aes-192-ecb | ||
| 410 | .It Cm aes-256-cbc | aes-256-ecb | ||
| 411 | AES cipher. | ||
| 412 | .Pp | ||
| 413 | .It Cm base64 | ||
| 414 | Base64 encoding. | ||
| 415 | .Pp | ||
| 416 | .It Xo | ||
| 417 | .Cm bf | bf-cbc | bf-cfb | | ||
| 418 | .Cm bf-ecb | bf-ofb | ||
| 419 | .Xc | ||
| 420 | Blowfish cipher. | ||
| 421 | .Pp | ||
| 422 | .It Cm cast | cast-cbc | ||
| 423 | CAST cipher. | ||
| 424 | .Pp | ||
| 425 | .It Cm cast5-cbc | cast5-cfb | cast5-ecb | cast5-ofb | ||
| 426 | CAST5 cipher. | ||
| 427 | .Pp | ||
| 428 | .It Xo | ||
| 429 | .Cm des | des-cbc | des-cfb | des-ecb | | ||
| 430 | .Cm des-ede | des-ede-cbc | ||
| 431 | .Xc | ||
| 432 | .It Cm des-ede-cfb | des-ede-ofb | des-ofb | ||
| 433 | DES cipher. | ||
| 434 | .Pp | ||
| 435 | .It Xo | ||
| 436 | .Cm des3 | desx | des-ede3 | | ||
| 437 | .Cm des-ede3-cbc | des-ede3-cfb | des-ede3-ofb | ||
| 438 | .Xc | ||
| 439 | Triple DES cipher. | ||
| 440 | .Pp | ||
| 441 | .It Xo | ||
| 442 | .Cm rc2 | rc2-40-cbc | rc2-64-cbc | rc2-cbc | | ||
| 443 | .Cm rc2-cfb | rc2-ecb | rc2-ofb | ||
| 444 | .Xc | ||
| 445 | RC2 cipher. | ||
| 446 | .Pp | ||
| 447 | .It Cm rc4 | rc4-40 | ||
| 448 | RC4 cipher. | ||
| 449 | .El | ||
| 450 | .Sh PASS PHRASE ARGUMENTS | ||
| 451 | Several commands accept password arguments, typically using | ||
| 452 | .Fl passin | ||
| 453 | and | ||
| 454 | .Fl passout | ||
| 455 | for input and output passwords, respectively. | ||
| 456 | These allow the password to be obtained from a variety of sources. | ||
| 457 | Both of these options take a single argument whose format is described below. | ||
| 458 | If no password argument is given and a password is required, | ||
| 459 | then the user is prompted to enter one: | ||
| 460 | this will typically be read from the current terminal with echoing turned off. | ||
| 461 | .Bl -tag -width "fd:number" | ||
| 462 | .It Ar pass : Ns Ar password | ||
| 463 | The actual password is | ||
| 464 | .Ar password . | ||
| 465 | Since the password is visible to utilities | ||
| 466 | (like | ||
| 467 | .Xr ps 1 | ||
| 468 | under | ||
| 469 | .Ux ) | ||
| 470 | this form should only be used where security is not important. | ||
| 471 | .It Ar env : Ns Ar var | ||
| 472 | Obtain the password from the environment variable | ||
| 473 | .Ar var . | ||
| 474 | Since the environment of other processes is visible on certain platforms | ||
| 475 | (e.g.\& | ||
| 476 | .Xr ps 1 | ||
| 477 | under certain | ||
| 478 | .Ux | ||
| 479 | OSes) this option should be used with caution. | ||
| 480 | .It Ar file : Ns Ar path | ||
| 481 | The first line of | ||
| 482 | .Ar path | ||
| 483 | is the password. | ||
| 484 | If the same | ||
| 485 | .Ar path | ||
| 486 | argument is supplied to | ||
| 487 | .Fl passin | ||
| 488 | and | ||
| 489 | .Fl passout , | ||
| 490 | then the first line will be used for the input password and the next line | ||
| 491 | for the output password. | ||
| 492 | .Ar path | ||
| 493 | need not refer to a regular file: | ||
| 494 | it could, for example, refer to a device or named pipe. | ||
| 495 | .It Ar fd : Ns Ar number | ||
| 496 | Read the password from the file descriptor | ||
| 497 | .Ar number . | ||
| 498 | This can be used to send the data via a pipe for example. | ||
| 499 | .It Ar stdin | ||
| 500 | Read the password from standard input. | ||
| 501 | .El | ||
| 502 | .\" | 210 | .\" |
| 503 | .\" ASN1PARSE | 211 | .\" ASN1PARSE |
| 504 | .\" | 212 | .\" |
| @@ -844,11 +552,6 @@ serial number in hex with | |||
| 844 | appended. | 552 | appended. |
| 845 | .It Fl passin Ar arg | 553 | .It Fl passin Ar arg |
| 846 | The key password source. | 554 | The key password source. |
| 847 | For more information about the format of | ||
| 848 | .Ar arg , | ||
| 849 | see the | ||
| 850 | .Sx PASS PHRASE ARGUMENTS | ||
| 851 | section above. | ||
| 852 | .It Fl policy Ar arg | 555 | .It Fl policy Ar arg |
| 853 | This option defines the CA | 556 | This option defines the CA |
| 854 | .Qq policy | 557 | .Qq policy |
| @@ -1875,11 +1578,6 @@ Key length must conform to any restrictions of the MAC algorithm. | |||
| 1875 | The file to output to, or standard output by default. | 1578 | The file to output to, or standard output by default. |
| 1876 | .It Fl passin Ar arg | 1579 | .It Fl passin Ar arg |
| 1877 | The key password source. | 1580 | The key password source. |
| 1878 | For more information about the format of | ||
| 1879 | .Ar arg , | ||
| 1880 | see the | ||
| 1881 | .Sx PASS PHRASE ARGUMENTS | ||
| 1882 | section above. | ||
| 1883 | .It Fl prverify Ar file | 1581 | .It Fl prverify Ar file |
| 1884 | Verify the signature using the private key in | 1582 | Verify the signature using the private key in |
| 1885 | .Ar file . | 1583 | .Ar file . |
| @@ -2165,18 +1863,8 @@ This specifies the output format; the options have the same meaning as the | |||
| 2165 | option. | 1863 | option. |
| 2166 | .It Fl passin Ar arg | 1864 | .It Fl passin Ar arg |
| 2167 | The key password source. | 1865 | The key password source. |
| 2168 | For more information about the format of | ||
| 2169 | .Ar arg , | ||
| 2170 | see the | ||
| 2171 | .Sx PASS PHRASE ARGUMENTS | ||
| 2172 | section above. | ||
| 2173 | .It Fl passout Ar arg | 1866 | .It Fl passout Ar arg |
| 2174 | The output file password source. | 1867 | The output file password source. |
| 2175 | For more information about the format of | ||
| 2176 | .Ar arg , | ||
| 2177 | see the | ||
| 2178 | .Sx PASS PHRASE ARGUMENTS | ||
| 2179 | section above. | ||
| 2180 | .It Fl pubin | 1868 | .It Fl pubin |
| 2181 | By default, a private key is read from the input file. | 1869 | By default, a private key is read from the input file. |
| 2182 | With this option a public key is read instead. | 1870 | With this option a public key is read instead. |
| @@ -2425,18 +2113,8 @@ is currently not implemented in | |||
| 2425 | .Nm OpenSSL . | 2113 | .Nm OpenSSL . |
| 2426 | .It Fl passin Ar arg | 2114 | .It Fl passin Ar arg |
| 2427 | The key password source. | 2115 | The key password source. |
| 2428 | For more information about the format of | ||
| 2429 | .Ar arg , | ||
| 2430 | see the | ||
| 2431 | .Sx PASS PHRASE ARGUMENTS | ||
| 2432 | section above. | ||
| 2433 | .It Fl passout Ar arg | 2116 | .It Fl passout Ar arg |
| 2434 | The output file password source. | 2117 | The output file password source. |
| 2435 | For more information about the format of | ||
| 2436 | .Ar arg , | ||
| 2437 | see the | ||
| 2438 | .Sx PASS PHRASE ARGUMENTS | ||
| 2439 | section above. | ||
| 2440 | .It Fl pubin | 2118 | .It Fl pubin |
| 2441 | By default a private key is read from the input file; | 2119 | By default a private key is read from the input file; |
| 2442 | with this option a public key is read instead. | 2120 | with this option a public key is read instead. |
| @@ -2819,11 +2497,6 @@ and | |||
| 2819 | used. | 2497 | used. |
| 2820 | .It Fl pass Ar arg | 2498 | .It Fl pass Ar arg |
| 2821 | The password source. | 2499 | The password source. |
| 2822 | For more information about the format of | ||
| 2823 | .Ar arg , | ||
| 2824 | see the | ||
| 2825 | .Sx PASS PHRASE ARGUMENTS | ||
| 2826 | section above. | ||
| 2827 | .It Fl S Ar salt | 2500 | .It Fl S Ar salt |
| 2828 | The actual | 2501 | The actual |
| 2829 | .Ar salt | 2502 | .Ar salt |
| @@ -3154,11 +2827,6 @@ and | |||
| 3154 | are mutually exclusive. | 2827 | are mutually exclusive. |
| 3155 | .It Fl pass Ar arg | 2828 | .It Fl pass Ar arg |
| 3156 | The output file password source. | 2829 | The output file password source. |
| 3157 | For more information about the format of | ||
| 3158 | .Ar arg , | ||
| 3159 | see the | ||
| 3160 | .Sx PASS PHRASE ARGUMENTS | ||
| 3161 | section above. | ||
| 3162 | .It Fl pkeyopt Ar opt : Ns Ar value | 2830 | .It Fl pkeyopt Ar opt : Ns Ar value |
| 3163 | Set the public key algorithm option | 2831 | Set the public key algorithm option |
| 3164 | .Ar opt | 2832 | .Ar opt |
| @@ -3288,11 +2956,6 @@ The output | |||
| 3288 | If this argument is not specified, standard output is used. | 2956 | If this argument is not specified, standard output is used. |
| 3289 | .It Fl passout Ar arg | 2957 | .It Fl passout Ar arg |
| 3290 | The output file password source. | 2958 | The output file password source. |
| 3291 | For more information about the format of | ||
| 3292 | .Ar arg , | ||
| 3293 | see the | ||
| 3294 | .Sx PASS PHRASE ARGUMENTS | ||
| 3295 | section above. | ||
| 3296 | .It Ar numbits | 2959 | .It Ar numbits |
| 3297 | The size of the private key to generate in bits. | 2960 | The size of the private key to generate in bits. |
| 3298 | This must be the last option specified. | 2961 | This must be the last option specified. |
| @@ -4122,18 +3785,8 @@ This specifies the output format; the options have the same meaning as the | |||
| 4122 | option. | 3785 | option. |
| 4123 | .It Fl passin Ar arg | 3786 | .It Fl passin Ar arg |
| 4124 | The key password source. | 3787 | The key password source. |
| 4125 | For more information about the format of | ||
| 4126 | .Ar arg , | ||
| 4127 | see the | ||
| 4128 | .Sx PASS PHRASE ARGUMENTS | ||
| 4129 | section above. | ||
| 4130 | .It Fl passout Ar arg | 3788 | .It Fl passout Ar arg |
| 4131 | The output file password source. | 3789 | The output file password source. |
| 4132 | For more information about the format of | ||
| 4133 | .Ar arg , | ||
| 4134 | see the | ||
| 4135 | .Sx PASS PHRASE ARGUMENTS | ||
| 4136 | section above. | ||
| 4137 | .It Fl topk8 | 3790 | .It Fl topk8 |
| 4138 | Normally, a PKCS#8 private key is expected on input and a traditional format | 3791 | Normally, a PKCS#8 private key is expected on input and a traditional format |
| 4139 | private key will be written. | 3792 | private key will be written. |
| @@ -4372,18 +4025,8 @@ to write certificates and private keys to, standard output by default. | |||
| 4372 | They are all written in PEM format. | 4025 | They are all written in PEM format. |
| 4373 | .It Fl passin Ar arg | 4026 | .It Fl passin Ar arg |
| 4374 | The key password source. | 4027 | The key password source. |
| 4375 | For more information about the format of | ||
| 4376 | .Ar arg , | ||
| 4377 | see the | ||
| 4378 | .Sx PASS PHRASE ARGUMENTS | ||
| 4379 | section above. | ||
| 4380 | .It Fl passout Ar arg | 4028 | .It Fl passout Ar arg |
| 4381 | The output file password source. | 4029 | The output file password source. |
| 4382 | For more information about the format of | ||
| 4383 | .Ar arg , | ||
| 4384 | see the | ||
| 4385 | .Sx PASS PHRASE ARGUMENTS | ||
| 4386 | section above. | ||
| 4387 | .It Fl twopass | 4030 | .It Fl twopass |
| 4388 | Prompt for separate integrity and encryption passwords: most software | 4031 | Prompt for separate integrity and encryption passwords: most software |
| 4389 | always assumes these are the same so this option will render such | 4032 | always assumes these are the same so this option will render such |
| @@ -4506,18 +4149,8 @@ to write the PKCS#12 file to. | |||
| 4506 | Standard output is used by default. | 4149 | Standard output is used by default. |
| 4507 | .It Fl passin Ar arg | 4150 | .It Fl passin Ar arg |
| 4508 | The key password source. | 4151 | The key password source. |
| 4509 | For more information about the format of | ||
| 4510 | .Ar arg , | ||
| 4511 | see the | ||
| 4512 | .Sx PASS PHRASE ARGUMENTS | ||
| 4513 | section above. | ||
| 4514 | .It Fl passout Ar arg | 4152 | .It Fl passout Ar arg |
| 4515 | The output file password source. | 4153 | The output file password source. |
| 4516 | For more information about the format of | ||
| 4517 | .Ar arg , | ||
| 4518 | see the | ||
| 4519 | .Sx PASS PHRASE ARGUMENTS | ||
| 4520 | section above. | ||
| 4521 | .El | 4154 | .El |
| 4522 | .Sh PKCS12 NOTES | 4155 | .Sh PKCS12 NOTES |
| 4523 | Although there are a large number of options, | 4156 | Although there are a large number of options, |
| @@ -4693,18 +4326,8 @@ the options have the same meaning as the | |||
| 4693 | option. | 4326 | option. |
| 4694 | .It Fl passin Ar arg | 4327 | .It Fl passin Ar arg |
| 4695 | The key password source. | 4328 | The key password source. |
| 4696 | For more information about the format of | ||
| 4697 | .Ar arg , | ||
| 4698 | see the | ||
| 4699 | .Sx PASS PHRASE ARGUMENTS | ||
| 4700 | section above. | ||
| 4701 | .It Fl passout Ar arg | 4329 | .It Fl passout Ar arg |
| 4702 | The output file password source. | 4330 | The output file password source. |
| 4703 | For more information about the format of | ||
| 4704 | .Ar arg | ||
| 4705 | see the | ||
| 4706 | .Sx PASS PHRASE ARGUMENTS | ||
| 4707 | section above. | ||
| 4708 | .It Fl pubin | 4331 | .It Fl pubin |
| 4709 | By default a private key is read from the input file: | 4332 | By default a private key is read from the input file: |
| 4710 | with this option a public key is read instead. | 4333 | with this option a public key is read instead. |
| @@ -4855,11 +4478,6 @@ Specify the output filename to write to, | |||
| 4855 | or standard output by default. | 4478 | or standard output by default. |
| 4856 | .It Fl passin Ar arg | 4479 | .It Fl passin Ar arg |
| 4857 | The key password source. | 4480 | The key password source. |
| 4858 | For more information about the format of | ||
| 4859 | .Ar arg , | ||
| 4860 | see the | ||
| 4861 | .Sx PASS PHRASE ARGUMENTS | ||
| 4862 | section above. | ||
| 4863 | .It Fl peerform Ar DER | PEM | 4481 | .It Fl peerform Ar DER | PEM |
| 4864 | The peer key format DER or PEM. | 4482 | The peer key format DER or PEM. |
| 4865 | .It Fl peerkey Ar file | 4483 | .It Fl peerkey Ar file |
| @@ -5293,18 +4911,8 @@ This specifies the output format; the options have the same meaning as the | |||
| 5293 | option. | 4911 | option. |
| 5294 | .It Fl passin Ar arg | 4912 | .It Fl passin Ar arg |
| 5295 | The key password source. | 4913 | The key password source. |
| 5296 | For more information about the format of | ||
| 5297 | .Ar arg , | ||
| 5298 | see the | ||
| 5299 | .Sx PASS PHRASE ARGUMENTS | ||
| 5300 | section above. | ||
| 5301 | .It Fl passout Ar arg | 4914 | .It Fl passout Ar arg |
| 5302 | The output file password source. | 4915 | The output file password source. |
| 5303 | For more information about the format of | ||
| 5304 | .Ar arg , | ||
| 5305 | see the | ||
| 5306 | .Sx PASS PHRASE ARGUMENTS | ||
| 5307 | section above. | ||
| 5308 | .It Fl pubkey | 4916 | .It Fl pubkey |
| 5309 | Outputs the public key. | 4917 | Outputs the public key. |
| 5310 | .It Fl reqopt Ar option | 4918 | .It Fl reqopt Ar option |
| @@ -5904,18 +5512,8 @@ This specifies the output format; the options have the same meaning as the | |||
| 5904 | option. | 5512 | option. |
| 5905 | .It Fl passin Ar arg | 5513 | .It Fl passin Ar arg |
| 5906 | The key password source. | 5514 | The key password source. |
| 5907 | For more information about the format of | ||
| 5908 | .Ar arg , | ||
| 5909 | see the | ||
| 5910 | .Sx PASS PHRASE ARGUMENTS | ||
| 5911 | section above. | ||
| 5912 | .It Fl passout Ar arg | 5515 | .It Fl passout Ar arg |
| 5913 | The output file password source. | 5516 | The output file password source. |
| 5914 | For more information about the format of | ||
| 5915 | .Ar arg , | ||
| 5916 | see the | ||
| 5917 | .Sx PASS PHRASE ARGUMENTS | ||
| 5918 | section above. | ||
| 5919 | .It Fl pubin | 5517 | .It Fl pubin |
| 5920 | By default, a private key is read from the input file; with this | 5518 | By default, a private key is read from the input file; with this |
| 5921 | option a public key is read instead. | 5519 | option a public key is read instead. |
| @@ -7384,11 +6982,6 @@ or | |||
| 7384 | this option has no effect. | 6982 | this option has no effect. |
| 7385 | .It Fl passin Ar arg | 6983 | .It Fl passin Ar arg |
| 7386 | The key password source. | 6984 | The key password source. |
| 7387 | For more information about the format of | ||
| 7388 | .Ar arg , | ||
| 7389 | see the | ||
| 7390 | .Sx PASS PHRASE ARGUMENTS | ||
| 7391 | section above. | ||
| 7392 | .It Fl recip Ar file | 6985 | .It Fl recip Ar file |
| 7393 | The recipients certificate when decrypting a message. | 6986 | The recipients certificate when decrypting a message. |
| 7394 | This certificate | 6987 | This certificate |
| @@ -7922,11 +7515,6 @@ and | |||
| 7922 | The default is stdout. | 7515 | The default is stdout. |
| 7923 | .It Fl passin Ar arg | 7516 | .It Fl passin Ar arg |
| 7924 | The key password source. | 7517 | The key password source. |
| 7925 | For more information about the format of | ||
| 7926 | .Ar arg , | ||
| 7927 | see the | ||
| 7928 | .Sx PASS PHRASE ARGUMENTS | ||
| 7929 | section above. | ||
| 7930 | .It Fl policy Ar object_id | 7518 | .It Fl policy Ar object_id |
| 7931 | The default policy to use for the response unless the client | 7519 | The default policy to use for the response unless the client |
| 7932 | explicitly requires a particular TSA policy. | 7520 | explicitly requires a particular TSA policy. |
| @@ -8348,11 +7936,6 @@ Specifies the output | |||
| 8348 | to write to, or standard output by default. | 7936 | to write to, or standard output by default. |
| 8349 | .It Fl passin Ar arg | 7937 | .It Fl passin Ar arg |
| 8350 | The key password source. | 7938 | The key password source. |
| 8351 | For more information about the format of | ||
| 8352 | .Ar arg , | ||
| 8353 | see the | ||
| 8354 | .Sx PASS PHRASE ARGUMENTS | ||
| 8355 | section above. | ||
| 8356 | .It Fl pubkey | 7939 | .It Fl pubkey |
| 8357 | Output the public key of an SPKAC | 7940 | Output the public key of an SPKAC |
| 8358 | .Pq not used if an SPKAC is being created . | 7941 | .Pq not used if an SPKAC is being created . |
| @@ -8940,11 +8523,6 @@ This specifies the output format; the options have the same meaning as the | |||
| 8940 | option. | 8523 | option. |
| 8941 | .It Fl passin Ar arg | 8524 | .It Fl passin Ar arg |
| 8942 | The key password source. | 8525 | The key password source. |
| 8943 | For more information about the format of | ||
| 8944 | .Ar arg , | ||
| 8945 | see the | ||
| 8946 | .Sx PASS PHRASE ARGUMENTS | ||
| 8947 | section above. | ||
| 8948 | .El | 8526 | .El |
| 8949 | .Sh X509 DISPLAY OPTIONS | 8527 | .Sh X509 DISPLAY OPTIONS |
| 8950 | .Sy Note : | 8528 | .Sy Note : |
| @@ -9803,6 +9381,58 @@ This means that any directories using the old form | |||
| 9803 | must have their links rebuilt using | 9381 | must have their links rebuilt using |
| 9804 | .Ar c_rehash | 9382 | .Ar c_rehash |
| 9805 | or similar. | 9383 | or similar. |
| 9384 | .Sh NOTES | ||
| 9385 | Several commands accept password arguments, typically using | ||
| 9386 | .Fl passin | ||
| 9387 | and | ||
| 9388 | .Fl passout | ||
| 9389 | for input and output passwords, respectively. | ||
| 9390 | These allow the password to be obtained from a variety of sources. | ||
| 9391 | Both of these options take a single argument whose format is described below. | ||
| 9392 | If no password argument is given and a password is required, | ||
| 9393 | then the user is prompted to enter one: | ||
| 9394 | this will typically be read from the current terminal with echoing turned off. | ||
| 9395 | .Bl -tag -width "fd:number" | ||
| 9396 | .It Ar pass : Ns Ar password | ||
| 9397 | The actual password is | ||
| 9398 | .Ar password . | ||
| 9399 | Since the password is visible to utilities | ||
| 9400 | (like | ||
| 9401 | .Xr ps 1 | ||
| 9402 | under | ||
| 9403 | .Ux ) | ||
| 9404 | this form should only be used where security is not important. | ||
| 9405 | .It Ar env : Ns Ar var | ||
| 9406 | Obtain the password from the environment variable | ||
| 9407 | .Ar var . | ||
| 9408 | Since the environment of other processes is visible on certain platforms | ||
| 9409 | (e.g.\& | ||
| 9410 | .Xr ps 1 | ||
| 9411 | under certain | ||
| 9412 | .Ux | ||
| 9413 | OSes) this option should be used with caution. | ||
| 9414 | .It Ar file : Ns Ar path | ||
| 9415 | The first line of | ||
| 9416 | .Ar path | ||
| 9417 | is the password. | ||
| 9418 | If the same | ||
| 9419 | .Ar path | ||
| 9420 | argument is supplied to | ||
| 9421 | .Fl passin | ||
| 9422 | and | ||
| 9423 | .Fl passout , | ||
| 9424 | then the first line will be used for the input password and the next line | ||
| 9425 | for the output password. | ||
| 9426 | .Ar path | ||
| 9427 | need not refer to a regular file: | ||
| 9428 | it could, for example, refer to a device or named pipe. | ||
| 9429 | .It Ar fd : Ns Ar number | ||
| 9430 | Read the password from the file descriptor | ||
| 9431 | .Ar number . | ||
| 9432 | This can be used to send the data via a pipe for example. | ||
| 9433 | .It Ar stdin | ||
| 9434 | Read the password from standard input. | ||
| 9435 | .El | ||
| 9806 | .\" | 9436 | .\" |
| 9807 | .\" FILES | 9437 | .\" FILES |
| 9808 | .\" | 9438 | .\" |
