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