1*ebfedea0SLionel Sambuc 2*ebfedea0SLionel Sambuc=pod 3*ebfedea0SLionel Sambuc 4*ebfedea0SLionel Sambuc=head1 NAME 5*ebfedea0SLionel Sambuc 6*ebfedea0SLionel Sambucopenssl - OpenSSL command line tool 7*ebfedea0SLionel Sambuc 8*ebfedea0SLionel Sambuc=head1 SYNOPSIS 9*ebfedea0SLionel Sambuc 10*ebfedea0SLionel SambucB<openssl> 11*ebfedea0SLionel SambucI<command> 12*ebfedea0SLionel Sambuc[ I<command_opts> ] 13*ebfedea0SLionel Sambuc[ I<command_args> ] 14*ebfedea0SLionel Sambuc 15*ebfedea0SLionel SambucB<openssl> [ B<list-standard-commands> | B<list-message-digest-commands> | B<list-cipher-commands> | B<list-cipher-algorithms> | B<list-message-digest-algorithms> | B<list-public-key-algorithms>] 16*ebfedea0SLionel Sambuc 17*ebfedea0SLionel SambucB<openssl> B<no->I<XXX> [ I<arbitrary options> ] 18*ebfedea0SLionel Sambuc 19*ebfedea0SLionel Sambuc=head1 DESCRIPTION 20*ebfedea0SLionel Sambuc 21*ebfedea0SLionel SambucOpenSSL is a cryptography toolkit implementing the Secure Sockets Layer (SSL 22*ebfedea0SLionel Sambucv2/v3) and Transport Layer Security (TLS v1) network protocols and related 23*ebfedea0SLionel Sambuccryptography standards required by them. 24*ebfedea0SLionel Sambuc 25*ebfedea0SLionel SambucThe B<openssl> program is a command line tool for using the various 26*ebfedea0SLionel Sambuccryptography functions of OpenSSL's B<crypto> library from the shell. 27*ebfedea0SLionel SambucIt can be used for 28*ebfedea0SLionel Sambuc 29*ebfedea0SLionel Sambuc o Creation and management of private keys, public keys and parameters 30*ebfedea0SLionel Sambuc o Public key cryptographic operations 31*ebfedea0SLionel Sambuc o Creation of X.509 certificates, CSRs and CRLs 32*ebfedea0SLionel Sambuc o Calculation of Message Digests 33*ebfedea0SLionel Sambuc o Encryption and Decryption with Ciphers 34*ebfedea0SLionel Sambuc o SSL/TLS Client and Server Tests 35*ebfedea0SLionel Sambuc o Handling of S/MIME signed or encrypted mail 36*ebfedea0SLionel Sambuc o Time Stamp requests, generation and verification 37*ebfedea0SLionel Sambuc 38*ebfedea0SLionel Sambuc=head1 COMMAND SUMMARY 39*ebfedea0SLionel Sambuc 40*ebfedea0SLionel SambucThe B<openssl> program provides a rich variety of commands (I<command> in the 41*ebfedea0SLionel SambucSYNOPSIS above), each of which often has a wealth of options and arguments 42*ebfedea0SLionel Sambuc(I<command_opts> and I<command_args> in the SYNOPSIS). 43*ebfedea0SLionel Sambuc 44*ebfedea0SLionel SambucThe pseudo-commands B<list-standard-commands>, B<list-message-digest-commands>, 45*ebfedea0SLionel Sambucand B<list-cipher-commands> output a list (one entry per line) of the names 46*ebfedea0SLionel Sambucof all standard commands, message digest commands, or cipher commands, 47*ebfedea0SLionel Sambucrespectively, that are available in the present B<openssl> utility. 48*ebfedea0SLionel Sambuc 49*ebfedea0SLionel SambucThe pseudo-commands B<list-cipher-algorithms> and 50*ebfedea0SLionel SambucB<list-message-digest-algorithms> list all cipher and message digest names, one entry per line. Aliases are listed as: 51*ebfedea0SLionel Sambuc 52*ebfedea0SLionel Sambuc from => to 53*ebfedea0SLionel Sambuc 54*ebfedea0SLionel SambucThe pseudo-command B<list-public-key-algorithms> lists all supported public 55*ebfedea0SLionel Sambuckey algorithms. 56*ebfedea0SLionel Sambuc 57*ebfedea0SLionel SambucThe pseudo-command B<no->I<XXX> tests whether a command of the 58*ebfedea0SLionel Sambucspecified name is available. If no command named I<XXX> exists, it 59*ebfedea0SLionel Sambucreturns 0 (success) and prints B<no->I<XXX>; otherwise it returns 1 60*ebfedea0SLionel Sambucand prints I<XXX>. In both cases, the output goes to B<stdout> and 61*ebfedea0SLionel Sambucnothing is printed to B<stderr>. Additional command line arguments 62*ebfedea0SLionel Sambucare always ignored. Since for each cipher there is a command of the 63*ebfedea0SLionel Sambucsame name, this provides an easy way for shell scripts to test for the 64*ebfedea0SLionel Sambucavailability of ciphers in the B<openssl> program. (B<no->I<XXX> is 65*ebfedea0SLionel Sambucnot able to detect pseudo-commands such as B<quit>, 66*ebfedea0SLionel SambucB<list->I<...>B<-commands>, or B<no->I<XXX> itself.) 67*ebfedea0SLionel Sambuc 68*ebfedea0SLionel Sambuc=head2 STANDARD COMMANDS 69*ebfedea0SLionel Sambuc 70*ebfedea0SLionel Sambuc=over 10 71*ebfedea0SLionel Sambuc 72*ebfedea0SLionel Sambuc=item L<B<asn1parse>|asn1parse(1)> 73*ebfedea0SLionel Sambuc 74*ebfedea0SLionel SambucParse an ASN.1 sequence. 75*ebfedea0SLionel Sambuc 76*ebfedea0SLionel Sambuc=item L<B<ca>|ca(1)> 77*ebfedea0SLionel Sambuc 78*ebfedea0SLionel SambucCertificate Authority (CA) Management. 79*ebfedea0SLionel Sambuc 80*ebfedea0SLionel Sambuc=item L<B<ciphers>|ciphers(1)> 81*ebfedea0SLionel Sambuc 82*ebfedea0SLionel SambucCipher Suite Description Determination. 83*ebfedea0SLionel Sambuc 84*ebfedea0SLionel Sambuc=item L<B<cms>|cms(1)> 85*ebfedea0SLionel Sambuc 86*ebfedea0SLionel SambucCMS (Cryptographic Message Syntax) utility 87*ebfedea0SLionel Sambuc 88*ebfedea0SLionel Sambuc=item L<B<crl>|crl(1)> 89*ebfedea0SLionel Sambuc 90*ebfedea0SLionel SambucCertificate Revocation List (CRL) Management. 91*ebfedea0SLionel Sambuc 92*ebfedea0SLionel Sambuc=item L<B<crl2pkcs7>|crl2pkcs7(1)> 93*ebfedea0SLionel Sambuc 94*ebfedea0SLionel SambucCRL to PKCS#7 Conversion. 95*ebfedea0SLionel Sambuc 96*ebfedea0SLionel Sambuc=item L<B<dgst>|dgst(1)> 97*ebfedea0SLionel Sambuc 98*ebfedea0SLionel SambucMessage Digest Calculation. 99*ebfedea0SLionel Sambuc 100*ebfedea0SLionel Sambuc=item B<dh> 101*ebfedea0SLionel Sambuc 102*ebfedea0SLionel SambucDiffie-Hellman Parameter Management. 103*ebfedea0SLionel SambucObsoleted by L<B<dhparam>|dhparam(1)>. 104*ebfedea0SLionel Sambuc 105*ebfedea0SLionel Sambuc=item L<B<dhparam>|dhparam(1)> 106*ebfedea0SLionel Sambuc 107*ebfedea0SLionel SambucGeneration and Management of Diffie-Hellman Parameters. Superseded by 108*ebfedea0SLionel SambucL<B<genpkey>|genpkey(1)> and L<B<pkeyparam>|pkeyparam(1)> 109*ebfedea0SLionel Sambuc 110*ebfedea0SLionel Sambuc 111*ebfedea0SLionel Sambuc=item L<B<dsa>|dsa(1)> 112*ebfedea0SLionel Sambuc 113*ebfedea0SLionel SambucDSA Data Management. 114*ebfedea0SLionel Sambuc 115*ebfedea0SLionel Sambuc=item L<B<dsaparam>|dsaparam(1)> 116*ebfedea0SLionel Sambuc 117*ebfedea0SLionel SambucDSA Parameter Generation and Management. Superseded by 118*ebfedea0SLionel SambucL<B<genpkey>|genpkey(1)> and L<B<pkeyparam>|pkeyparam(1)> 119*ebfedea0SLionel Sambuc 120*ebfedea0SLionel Sambuc=item L<B<ec>|ec(1)> 121*ebfedea0SLionel Sambuc 122*ebfedea0SLionel SambucEC (Elliptic curve) key processing 123*ebfedea0SLionel Sambuc 124*ebfedea0SLionel Sambuc=item L<B<ecparam>|ecparam(1)> 125*ebfedea0SLionel Sambuc 126*ebfedea0SLionel SambucEC parameter manipulation and generation 127*ebfedea0SLionel Sambuc 128*ebfedea0SLionel Sambuc=item L<B<enc>|enc(1)> 129*ebfedea0SLionel Sambuc 130*ebfedea0SLionel SambucEncoding with Ciphers. 131*ebfedea0SLionel Sambuc 132*ebfedea0SLionel Sambuc=item L<B<engine>|engine(1)> 133*ebfedea0SLionel Sambuc 134*ebfedea0SLionel SambucEngine (loadble module) information and manipulation. 135*ebfedea0SLionel Sambuc 136*ebfedea0SLionel Sambuc=item L<B<errstr>|errstr(1)> 137*ebfedea0SLionel Sambuc 138*ebfedea0SLionel SambucError Number to Error String Conversion. 139*ebfedea0SLionel Sambuc 140*ebfedea0SLionel Sambuc=item B<gendh> 141*ebfedea0SLionel Sambuc 142*ebfedea0SLionel SambucGeneration of Diffie-Hellman Parameters. 143*ebfedea0SLionel SambucObsoleted by L<B<dhparam>|dhparam(1)>. 144*ebfedea0SLionel Sambuc 145*ebfedea0SLionel Sambuc=item L<B<gendsa>|gendsa(1)> 146*ebfedea0SLionel Sambuc 147*ebfedea0SLionel SambucGeneration of DSA Private Key from Parameters. Superseded by 148*ebfedea0SLionel SambucL<B<genpkey>|genpkey(1)> and L<B<pkey>|pkey(1)> 149*ebfedea0SLionel Sambuc 150*ebfedea0SLionel Sambuc=item L<B<genpkey>|genpkey(1)> 151*ebfedea0SLionel Sambuc 152*ebfedea0SLionel SambucGeneration of Private Key or Parameters. 153*ebfedea0SLionel Sambuc 154*ebfedea0SLionel Sambuc=item L<B<genrsa>|genrsa(1)> 155*ebfedea0SLionel Sambuc 156*ebfedea0SLionel SambucGeneration of RSA Private Key. Superceded by L<B<genpkey>|genpkey(1)>. 157*ebfedea0SLionel Sambuc 158*ebfedea0SLionel Sambuc=item L<B<nseq>|nseq(1)> 159*ebfedea0SLionel Sambuc 160*ebfedea0SLionel SambucCreate or examine a netscape certificate sequence 161*ebfedea0SLionel Sambuc 162*ebfedea0SLionel Sambuc=item L<B<ocsp>|ocsp(1)> 163*ebfedea0SLionel Sambuc 164*ebfedea0SLionel SambucOnline Certificate Status Protocol utility. 165*ebfedea0SLionel Sambuc 166*ebfedea0SLionel Sambuc=item L<B<passwd>|passwd(1)> 167*ebfedea0SLionel Sambuc 168*ebfedea0SLionel SambucGeneration of hashed passwords. 169*ebfedea0SLionel Sambuc 170*ebfedea0SLionel Sambuc=item L<B<pkcs12>|pkcs12(1)> 171*ebfedea0SLionel Sambuc 172*ebfedea0SLionel SambucPKCS#12 Data Management. 173*ebfedea0SLionel Sambuc 174*ebfedea0SLionel Sambuc=item L<B<pkcs7>|pkcs7(1)> 175*ebfedea0SLionel Sambuc 176*ebfedea0SLionel SambucPKCS#7 Data Management. 177*ebfedea0SLionel Sambuc 178*ebfedea0SLionel Sambuc=item L<B<pkey>|pkey(1)> 179*ebfedea0SLionel Sambuc 180*ebfedea0SLionel SambucPublic and private key management. 181*ebfedea0SLionel Sambuc 182*ebfedea0SLionel Sambuc=item L<B<pkeyparam>|pkeyparam(1)> 183*ebfedea0SLionel Sambuc 184*ebfedea0SLionel SambucPublic key algorithm parameter management. 185*ebfedea0SLionel Sambuc 186*ebfedea0SLionel Sambuc=item L<B<pkeyutl>|pkeyutl(1)> 187*ebfedea0SLionel Sambuc 188*ebfedea0SLionel SambucPublic key algorithm cryptographic operation utility. 189*ebfedea0SLionel Sambuc 190*ebfedea0SLionel Sambuc=item L<B<rand>|rand(1)> 191*ebfedea0SLionel Sambuc 192*ebfedea0SLionel SambucGenerate pseudo-random bytes. 193*ebfedea0SLionel Sambuc 194*ebfedea0SLionel Sambuc=item L<B<req>|req(1)> 195*ebfedea0SLionel Sambuc 196*ebfedea0SLionel SambucPKCS#10 X.509 Certificate Signing Request (CSR) Management. 197*ebfedea0SLionel Sambuc 198*ebfedea0SLionel Sambuc=item L<B<rsa>|rsa(1)> 199*ebfedea0SLionel Sambuc 200*ebfedea0SLionel SambucRSA key management. 201*ebfedea0SLionel Sambuc 202*ebfedea0SLionel Sambuc 203*ebfedea0SLionel Sambuc=item L<B<rsautl>|rsautl(1)> 204*ebfedea0SLionel Sambuc 205*ebfedea0SLionel SambucRSA utility for signing, verification, encryption, and decryption. Superseded 206*ebfedea0SLionel Sambucby L<B<pkeyutl>|pkeyutl(1)> 207*ebfedea0SLionel Sambuc 208*ebfedea0SLionel Sambuc=item L<B<s_client>|s_client(1)> 209*ebfedea0SLionel Sambuc 210*ebfedea0SLionel SambucThis implements a generic SSL/TLS client which can establish a transparent 211*ebfedea0SLionel Sambucconnection to a remote server speaking SSL/TLS. It's intended for testing 212*ebfedea0SLionel Sambucpurposes only and provides only rudimentary interface functionality but 213*ebfedea0SLionel Sambucinternally uses mostly all functionality of the OpenSSL B<ssl> library. 214*ebfedea0SLionel Sambuc 215*ebfedea0SLionel Sambuc=item L<B<s_server>|s_server(1)> 216*ebfedea0SLionel Sambuc 217*ebfedea0SLionel SambucThis implements a generic SSL/TLS server which accepts connections from remote 218*ebfedea0SLionel Sambucclients speaking SSL/TLS. It's intended for testing purposes only and provides 219*ebfedea0SLionel Sambuconly rudimentary interface functionality but internally uses mostly all 220*ebfedea0SLionel Sambucfunctionality of the OpenSSL B<ssl> library. It provides both an own command 221*ebfedea0SLionel Sambucline oriented protocol for testing SSL functions and a simple HTTP response 222*ebfedea0SLionel Sambucfacility to emulate an SSL/TLS-aware webserver. 223*ebfedea0SLionel Sambuc 224*ebfedea0SLionel Sambuc=item L<B<s_time>|s_time(1)> 225*ebfedea0SLionel Sambuc 226*ebfedea0SLionel SambucSSL Connection Timer. 227*ebfedea0SLionel Sambuc 228*ebfedea0SLionel Sambuc=item L<B<sess_id>|sess_id(1)> 229*ebfedea0SLionel Sambuc 230*ebfedea0SLionel SambucSSL Session Data Management. 231*ebfedea0SLionel Sambuc 232*ebfedea0SLionel Sambuc=item L<B<smime>|smime(1)> 233*ebfedea0SLionel Sambuc 234*ebfedea0SLionel SambucS/MIME mail processing. 235*ebfedea0SLionel Sambuc 236*ebfedea0SLionel Sambuc=item L<B<speed>|speed(1)> 237*ebfedea0SLionel Sambuc 238*ebfedea0SLionel SambucAlgorithm Speed Measurement. 239*ebfedea0SLionel Sambuc 240*ebfedea0SLionel Sambuc=item L<B<spkac>|spkac(1)> 241*ebfedea0SLionel Sambuc 242*ebfedea0SLionel SambucSPKAC printing and generating utility 243*ebfedea0SLionel Sambuc 244*ebfedea0SLionel Sambuc=item L<B<ts>|ts(1)> 245*ebfedea0SLionel Sambuc 246*ebfedea0SLionel SambucTime Stamping Authority tool (client/server) 247*ebfedea0SLionel Sambuc 248*ebfedea0SLionel Sambuc=item L<B<verify>|verify(1)> 249*ebfedea0SLionel Sambuc 250*ebfedea0SLionel SambucX.509 Certificate Verification. 251*ebfedea0SLionel Sambuc 252*ebfedea0SLionel Sambuc=item L<B<version>|version(1)> 253*ebfedea0SLionel Sambuc 254*ebfedea0SLionel SambucOpenSSL Version Information. 255*ebfedea0SLionel Sambuc 256*ebfedea0SLionel Sambuc=item L<B<x509>|x509(1)> 257*ebfedea0SLionel Sambuc 258*ebfedea0SLionel SambucX.509 Certificate Data Management. 259*ebfedea0SLionel Sambuc 260*ebfedea0SLionel Sambuc=back 261*ebfedea0SLionel Sambuc 262*ebfedea0SLionel Sambuc=head2 MESSAGE DIGEST COMMANDS 263*ebfedea0SLionel Sambuc 264*ebfedea0SLionel Sambuc=over 10 265*ebfedea0SLionel Sambuc 266*ebfedea0SLionel Sambuc=item B<md2> 267*ebfedea0SLionel Sambuc 268*ebfedea0SLionel SambucMD2 Digest 269*ebfedea0SLionel Sambuc 270*ebfedea0SLionel Sambuc=item B<md5> 271*ebfedea0SLionel Sambuc 272*ebfedea0SLionel SambucMD5 Digest 273*ebfedea0SLionel Sambuc 274*ebfedea0SLionel Sambuc=item B<mdc2> 275*ebfedea0SLionel Sambuc 276*ebfedea0SLionel SambucMDC2 Digest 277*ebfedea0SLionel Sambuc 278*ebfedea0SLionel Sambuc=item B<rmd160> 279*ebfedea0SLionel Sambuc 280*ebfedea0SLionel SambucRMD-160 Digest 281*ebfedea0SLionel Sambuc 282*ebfedea0SLionel Sambuc=item B<sha> 283*ebfedea0SLionel Sambuc 284*ebfedea0SLionel SambucSHA Digest 285*ebfedea0SLionel Sambuc 286*ebfedea0SLionel Sambuc=item B<sha1> 287*ebfedea0SLionel Sambuc 288*ebfedea0SLionel SambucSHA-1 Digest 289*ebfedea0SLionel Sambuc 290*ebfedea0SLionel Sambuc=item B<sha224> 291*ebfedea0SLionel Sambuc 292*ebfedea0SLionel SambucSHA-224 Digest 293*ebfedea0SLionel Sambuc 294*ebfedea0SLionel Sambuc=item B<sha256> 295*ebfedea0SLionel Sambuc 296*ebfedea0SLionel SambucSHA-256 Digest 297*ebfedea0SLionel Sambuc 298*ebfedea0SLionel Sambuc=item B<sha384> 299*ebfedea0SLionel Sambuc 300*ebfedea0SLionel SambucSHA-384 Digest 301*ebfedea0SLionel Sambuc 302*ebfedea0SLionel Sambuc=item B<sha512> 303*ebfedea0SLionel Sambuc 304*ebfedea0SLionel SambucSHA-512 Digest 305*ebfedea0SLionel Sambuc 306*ebfedea0SLionel Sambuc=back 307*ebfedea0SLionel Sambuc 308*ebfedea0SLionel Sambuc=head2 ENCODING AND CIPHER COMMANDS 309*ebfedea0SLionel Sambuc 310*ebfedea0SLionel Sambuc=over 10 311*ebfedea0SLionel Sambuc 312*ebfedea0SLionel Sambuc=item B<base64> 313*ebfedea0SLionel Sambuc 314*ebfedea0SLionel SambucBase64 Encoding 315*ebfedea0SLionel Sambuc 316*ebfedea0SLionel Sambuc=item B<bf bf-cbc bf-cfb bf-ecb bf-ofb> 317*ebfedea0SLionel Sambuc 318*ebfedea0SLionel SambucBlowfish Cipher 319*ebfedea0SLionel Sambuc 320*ebfedea0SLionel Sambuc=item B<cast cast-cbc> 321*ebfedea0SLionel Sambuc 322*ebfedea0SLionel SambucCAST Cipher 323*ebfedea0SLionel Sambuc 324*ebfedea0SLionel Sambuc=item B<cast5-cbc cast5-cfb cast5-ecb cast5-ofb> 325*ebfedea0SLionel Sambuc 326*ebfedea0SLionel SambucCAST5 Cipher 327*ebfedea0SLionel Sambuc 328*ebfedea0SLionel Sambuc=item B<des des-cbc des-cfb des-ecb des-ede des-ede-cbc des-ede-cfb des-ede-ofb des-ofb> 329*ebfedea0SLionel Sambuc 330*ebfedea0SLionel SambucDES Cipher 331*ebfedea0SLionel Sambuc 332*ebfedea0SLionel Sambuc=item B<des3 desx des-ede3 des-ede3-cbc des-ede3-cfb des-ede3-ofb> 333*ebfedea0SLionel Sambuc 334*ebfedea0SLionel SambucTriple-DES Cipher 335*ebfedea0SLionel Sambuc 336*ebfedea0SLionel Sambuc=item B<idea idea-cbc idea-cfb idea-ecb idea-ofb> 337*ebfedea0SLionel Sambuc 338*ebfedea0SLionel SambucIDEA Cipher 339*ebfedea0SLionel Sambuc 340*ebfedea0SLionel Sambuc=item B<rc2 rc2-cbc rc2-cfb rc2-ecb rc2-ofb> 341*ebfedea0SLionel Sambuc 342*ebfedea0SLionel SambucRC2 Cipher 343*ebfedea0SLionel Sambuc 344*ebfedea0SLionel Sambuc=item B<rc4> 345*ebfedea0SLionel Sambuc 346*ebfedea0SLionel SambucRC4 Cipher 347*ebfedea0SLionel Sambuc 348*ebfedea0SLionel Sambuc=item B<rc5 rc5-cbc rc5-cfb rc5-ecb rc5-ofb> 349*ebfedea0SLionel Sambuc 350*ebfedea0SLionel SambucRC5 Cipher 351*ebfedea0SLionel Sambuc 352*ebfedea0SLionel Sambuc=back 353*ebfedea0SLionel Sambuc 354*ebfedea0SLionel Sambuc=head1 PASS PHRASE ARGUMENTS 355*ebfedea0SLionel Sambuc 356*ebfedea0SLionel SambucSeveral commands accept password arguments, typically using B<-passin> 357*ebfedea0SLionel Sambucand B<-passout> for input and output passwords respectively. These allow 358*ebfedea0SLionel Sambucthe password to be obtained from a variety of sources. Both of these 359*ebfedea0SLionel Sambucoptions take a single argument whose format is described below. If no 360*ebfedea0SLionel Sambucpassword argument is given and a password is required then the user is 361*ebfedea0SLionel Sambucprompted to enter one: this will typically be read from the current 362*ebfedea0SLionel Sambucterminal with echoing turned off. 363*ebfedea0SLionel Sambuc 364*ebfedea0SLionel Sambuc=over 10 365*ebfedea0SLionel Sambuc 366*ebfedea0SLionel Sambuc=item B<pass:password> 367*ebfedea0SLionel Sambuc 368*ebfedea0SLionel Sambucthe actual password is B<password>. Since the password is visible 369*ebfedea0SLionel Sambucto utilities (like 'ps' under Unix) this form should only be used 370*ebfedea0SLionel Sambucwhere security is not important. 371*ebfedea0SLionel Sambuc 372*ebfedea0SLionel Sambuc=item B<env:var> 373*ebfedea0SLionel Sambuc 374*ebfedea0SLionel Sambucobtain the password from the environment variable B<var>. Since 375*ebfedea0SLionel Sambucthe environment of other processes is visible on certain platforms 376*ebfedea0SLionel Sambuc(e.g. ps under certain Unix OSes) this option should be used with caution. 377*ebfedea0SLionel Sambuc 378*ebfedea0SLionel Sambuc=item B<file:pathname> 379*ebfedea0SLionel Sambuc 380*ebfedea0SLionel Sambucthe first line of B<pathname> is the password. If the same B<pathname> 381*ebfedea0SLionel Sambucargument is supplied to B<-passin> and B<-passout> arguments then the first 382*ebfedea0SLionel Sambucline will be used for the input password and the next line for the output 383*ebfedea0SLionel Sambucpassword. B<pathname> need not refer to a regular file: it could for example 384*ebfedea0SLionel Sambucrefer to a device or named pipe. 385*ebfedea0SLionel Sambuc 386*ebfedea0SLionel Sambuc=item B<fd:number> 387*ebfedea0SLionel Sambuc 388*ebfedea0SLionel Sambucread the password from the file descriptor B<number>. This can be used to 389*ebfedea0SLionel Sambucsend the data via a pipe for example. 390*ebfedea0SLionel Sambuc 391*ebfedea0SLionel Sambuc=item B<stdin> 392*ebfedea0SLionel Sambuc 393*ebfedea0SLionel Sambucread the password from standard input. 394*ebfedea0SLionel Sambuc 395*ebfedea0SLionel Sambuc=back 396*ebfedea0SLionel Sambuc 397*ebfedea0SLionel Sambuc=head1 SEE ALSO 398*ebfedea0SLionel Sambuc 399*ebfedea0SLionel SambucL<asn1parse(1)|asn1parse(1)>, L<ca(1)|ca(1)>, L<config(5)|config(5)>, 400*ebfedea0SLionel SambucL<crl(1)|crl(1)>, L<crl2pkcs7(1)|crl2pkcs7(1)>, L<dgst(1)|dgst(1)>, 401*ebfedea0SLionel SambucL<dhparam(1)|dhparam(1)>, L<dsa(1)|dsa(1)>, L<dsaparam(1)|dsaparam(1)>, 402*ebfedea0SLionel SambucL<enc(1)|enc(1)>, L<gendsa(1)|gendsa(1)>, L<genpkey(1)|genpkey(1)>, 403*ebfedea0SLionel SambucL<genrsa(1)|genrsa(1)>, L<nseq(1)|nseq(1)>, L<openssl(1)|openssl(1)>, 404*ebfedea0SLionel SambucL<passwd(1)|passwd(1)>, 405*ebfedea0SLionel SambucL<pkcs12(1)|pkcs12(1)>, L<pkcs7(1)|pkcs7(1)>, L<pkcs8(1)|pkcs8(1)>, 406*ebfedea0SLionel SambucL<rand(1)|rand(1)>, L<req(1)|req(1)>, L<rsa(1)|rsa(1)>, 407*ebfedea0SLionel SambucL<rsautl(1)|rsautl(1)>, L<s_client(1)|s_client(1)>, 408*ebfedea0SLionel SambucL<s_server(1)|s_server(1)>, L<s_time(1)|s_time(1)>, 409*ebfedea0SLionel SambucL<smime(1)|smime(1)>, L<spkac(1)|spkac(1)>, 410*ebfedea0SLionel SambucL<verify(1)|verify(1)>, L<version(1)|version(1)>, L<x509(1)|x509(1)>, 411*ebfedea0SLionel SambucL<crypto(3)|crypto(3)>, L<ssl(3)|ssl(3)>, L<x509v3_config(5)|x509v3_config(5)> 412*ebfedea0SLionel Sambuc 413*ebfedea0SLionel Sambuc=head1 HISTORY 414*ebfedea0SLionel Sambuc 415*ebfedea0SLionel SambucThe openssl(1) document appeared in OpenSSL 0.9.2. 416*ebfedea0SLionel SambucThe B<list->I<XXX>B<-commands> pseudo-commands were added in OpenSSL 0.9.3; 417*ebfedea0SLionel SambucThe B<list->I<XXX>B<-algorithms> pseudo-commands were added in OpenSSL 1.0.0; 418*ebfedea0SLionel Sambucthe B<no->I<XXX> pseudo-commands were added in OpenSSL 0.9.5a. 419*ebfedea0SLionel SambucFor notes on the availability of other commands, see their individual 420*ebfedea0SLionel Sambucmanual pages. 421*ebfedea0SLionel Sambuc 422*ebfedea0SLionel Sambuc=cut 423