1 | =pod
|
---|
2 |
|
---|
3 | =head1 NAME
|
---|
4 |
|
---|
5 | openssl-passphrase-options - Pass phrase options
|
---|
6 |
|
---|
7 | =head1 SYNOPSIS
|
---|
8 |
|
---|
9 | B<openssl>
|
---|
10 | I<command>
|
---|
11 | [ I<options> ... ]
|
---|
12 | [ I<parameters> ... ]
|
---|
13 |
|
---|
14 | =head1 DESCRIPTION
|
---|
15 |
|
---|
16 | Several OpenSSL commands accept password arguments, typically using B<-passin>
|
---|
17 | and B<-passout> for input and output passwords respectively. These allow
|
---|
18 | the password to be obtained from a variety of sources. Both of these
|
---|
19 | options take a single argument whose format is described below. If no
|
---|
20 | password argument is given and a password is required then the user is
|
---|
21 | prompted to enter one: this will typically be read from the current
|
---|
22 | terminal with echoing turned off.
|
---|
23 |
|
---|
24 | Note that character encoding may be relevant, please see
|
---|
25 | L<passphrase-encoding(7)>.
|
---|
26 |
|
---|
27 | =head1 OPTIONS
|
---|
28 |
|
---|
29 | =head2 Pass Phrase Option Arguments
|
---|
30 |
|
---|
31 | Pass phrase arguments can be formatted as follows.
|
---|
32 |
|
---|
33 | =over 4
|
---|
34 |
|
---|
35 | =item B<pass:>I<password>
|
---|
36 |
|
---|
37 | The actual password is I<password>. Since the password is visible
|
---|
38 | to utilities (like 'ps' under Unix) this form should only be used
|
---|
39 | where security is not important.
|
---|
40 |
|
---|
41 | =item B<env:>I<var>
|
---|
42 |
|
---|
43 | Obtain the password from the environment variable I<var>. Since
|
---|
44 | the environment of other processes is visible on certain platforms
|
---|
45 | (e.g. ps under certain Unix OSes) this option should be used with caution.
|
---|
46 |
|
---|
47 | =item B<file:>I<pathname>
|
---|
48 |
|
---|
49 | The first line of I<pathname> is the password. If the same I<pathname>
|
---|
50 | argument is supplied to B<-passin> and B<-passout> arguments then the first
|
---|
51 | line will be used for the input password and the next line for the output
|
---|
52 | password. I<pathname> need not refer to a regular file: it could for example
|
---|
53 | refer to a device or named pipe.
|
---|
54 |
|
---|
55 | =item B<fd:>I<number>
|
---|
56 |
|
---|
57 | Read the password from the file descriptor I<number>. This can be used to
|
---|
58 | send the data via a pipe for example.
|
---|
59 |
|
---|
60 | =item B<stdin>
|
---|
61 |
|
---|
62 | Read the password from standard input.
|
---|
63 |
|
---|
64 | =back
|
---|
65 |
|
---|
66 | =head1 COPYRIGHT
|
---|
67 |
|
---|
68 | Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
|
---|
69 |
|
---|
70 | Licensed under the Apache License 2.0 (the "License"). You may not use
|
---|
71 | this file except in compliance with the License. You can obtain a copy
|
---|
72 | in the file LICENSE in the source distribution or at
|
---|
73 | L<https://www.openssl.org/source/license.html>.
|
---|
74 |
|
---|
75 | =cut
|
---|