openssl.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. <?xml version="1.0" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title>openssl</title>
  6. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  7. <link rev="made" href="mailto:root@localhost" />
  8. </head>
  9. <body>
  10. <ul id="index">
  11. <li><a href="#NAME">NAME</a></li>
  12. <li><a href="#SYNOPSIS">SYNOPSIS</a></li>
  13. <li><a href="#DESCRIPTION">DESCRIPTION</a></li>
  14. <li><a href="#COMMAND-SUMMARY">COMMAND SUMMARY</a>
  15. <ul>
  16. <li><a href="#Standard-Commands">Standard Commands</a></li>
  17. <li><a href="#Message-Digest-Commands">Message Digest Commands</a></li>
  18. <li><a href="#Encoding-and-Cipher-Commands">Encoding and Cipher Commands</a></li>
  19. </ul>
  20. </li>
  21. <li><a href="#OPTIONS">OPTIONS</a>
  22. <ul>
  23. <li><a href="#Common-Options">Common Options</a></li>
  24. <li><a href="#Pass-Phrase-Options">Pass Phrase Options</a></li>
  25. </ul>
  26. </li>
  27. <li><a href="#SEE-ALSO">SEE ALSO</a></li>
  28. <li><a href="#HISTORY">HISTORY</a></li>
  29. <li><a href="#COPYRIGHT">COPYRIGHT</a></li>
  30. </ul>
  31. <h1 id="NAME">NAME</h1>
  32. <p>openssl - OpenSSL command line tool</p>
  33. <h1 id="SYNOPSIS">SYNOPSIS</h1>
  34. <p><b>openssl</b> <i>command</i> [ <i>command_opts</i> ] [ <i>command_args</i> ]</p>
  35. <p><b>openssl</b> <b>list</b> [ <b>standard-commands</b> | <b>digest-commands</b> | <b>cipher-commands</b> | <b>cipher-algorithms</b> | <b>digest-algorithms</b> | <b>public-key-algorithms</b>]</p>
  36. <p><b>openssl</b> <b>no-</b><i>XXX</i> [ <i>arbitrary options</i> ]</p>
  37. <h1 id="DESCRIPTION">DESCRIPTION</h1>
  38. <p>OpenSSL is a cryptography toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) network protocols and related cryptography standards required by them.</p>
  39. <p>The <b>openssl</b> program is a command line tool for using the various cryptography functions of OpenSSL&#39;s <b>crypto</b> library from the shell. It can be used for</p>
  40. <pre><code> o Creation and management of private keys, public keys and parameters
  41. o Public key cryptographic operations
  42. o Creation of X.509 certificates, CSRs and CRLs
  43. o Calculation of Message Digests
  44. o Encryption and Decryption with Ciphers
  45. o SSL/TLS Client and Server Tests
  46. o Handling of S/MIME signed or encrypted mail
  47. o Time Stamp requests, generation and verification</code></pre>
  48. <h1 id="COMMAND-SUMMARY">COMMAND SUMMARY</h1>
  49. <p>The <b>openssl</b> program provides a rich variety of commands (<i>command</i> in the SYNOPSIS above), each of which often has a wealth of options and arguments (<i>command_opts</i> and <i>command_args</i> in the SYNOPSIS).</p>
  50. <p>Detailed documentation and use cases for most standard subcommands are available (e.g., <a href="../man1/x509.html">x509(1)</a> or <a href="../man1/openssl-x509.html">openssl-x509(1)</a>).</p>
  51. <p>Many commands use an external configuration file for some or all of their arguments and have a <b>-config</b> option to specify that file. The environment variable <b>OPENSSL_CONF</b> can be used to specify the location of the file. If the environment variable is not specified, then the file is named <b>openssl.cnf</b> in the default certificate storage area, whose value depends on the configuration flags specified when the OpenSSL was built.</p>
  52. <p>The list parameters <b>standard-commands</b>, <b>digest-commands</b>, and <b>cipher-commands</b> output a list (one entry per line) of the names of all standard commands, message digest commands, or cipher commands, respectively, that are available in the present <b>openssl</b> utility.</p>
  53. <p>The list parameters <b>cipher-algorithms</b> and <b>digest-algorithms</b> list all cipher and message digest names, one entry per line. Aliases are listed as:</p>
  54. <pre><code> from =&gt; to</code></pre>
  55. <p>The list parameter <b>public-key-algorithms</b> lists all supported public key algorithms.</p>
  56. <p>The command <b>no-</b><i>XXX</i> tests whether a command of the specified name is available. If no command named <i>XXX</i> exists, it returns 0 (success) and prints <b>no-</b><i>XXX</i>; otherwise it returns 1 and prints <i>XXX</i>. In both cases, the output goes to <b>stdout</b> and nothing is printed to <b>stderr</b>. Additional command line arguments are always ignored. Since for each cipher there is a command of the same name, this provides an easy way for shell scripts to test for the availability of ciphers in the <b>openssl</b> program. (<b>no-</b><i>XXX</i> is not able to detect pseudo-commands such as <b>quit</b>, <b>list</b>, or <b>no-</b><i>XXX</i> itself.)</p>
  57. <h2 id="Standard-Commands">Standard Commands</h2>
  58. <dl>
  59. <dt id="asn1parse"><b>asn1parse</b></dt>
  60. <dd>
  61. <p>Parse an ASN.1 sequence.</p>
  62. </dd>
  63. <dt id="ca"><b>ca</b></dt>
  64. <dd>
  65. <p>Certificate Authority (CA) Management.</p>
  66. </dd>
  67. <dt id="ciphers"><b>ciphers</b></dt>
  68. <dd>
  69. <p>Cipher Suite Description Determination.</p>
  70. </dd>
  71. <dt id="cms"><b>cms</b></dt>
  72. <dd>
  73. <p>CMS (Cryptographic Message Syntax) utility.</p>
  74. </dd>
  75. <dt id="crl"><b>crl</b></dt>
  76. <dd>
  77. <p>Certificate Revocation List (CRL) Management.</p>
  78. </dd>
  79. <dt id="crl2pkcs7"><b>crl2pkcs7</b></dt>
  80. <dd>
  81. <p>CRL to PKCS#7 Conversion.</p>
  82. </dd>
  83. <dt id="dgst"><b>dgst</b></dt>
  84. <dd>
  85. <p>Message Digest Calculation.</p>
  86. </dd>
  87. <dt id="dh"><b>dh</b></dt>
  88. <dd>
  89. <p>Diffie-Hellman Parameter Management. Obsoleted by <a href="../man1/dhparam.html">dhparam(1)</a>.</p>
  90. </dd>
  91. <dt id="dhparam"><b>dhparam</b></dt>
  92. <dd>
  93. <p>Generation and Management of Diffie-Hellman Parameters. Superseded by <a href="../man1/genpkey.html">genpkey(1)</a> and <a href="../man1/pkeyparam.html">pkeyparam(1)</a>.</p>
  94. </dd>
  95. <dt id="dsa"><b>dsa</b></dt>
  96. <dd>
  97. <p>DSA Data Management.</p>
  98. </dd>
  99. <dt id="dsaparam"><b>dsaparam</b></dt>
  100. <dd>
  101. <p>DSA Parameter Generation and Management. Superseded by <a href="../man1/genpkey.html">genpkey(1)</a> and <a href="../man1/pkeyparam.html">pkeyparam(1)</a>.</p>
  102. </dd>
  103. <dt id="ec"><b>ec</b></dt>
  104. <dd>
  105. <p>EC (Elliptic curve) key processing.</p>
  106. </dd>
  107. <dt id="ecparam"><b>ecparam</b></dt>
  108. <dd>
  109. <p>EC parameter manipulation and generation.</p>
  110. </dd>
  111. <dt id="enc"><b>enc</b></dt>
  112. <dd>
  113. <p>Encoding with Ciphers.</p>
  114. </dd>
  115. <dt id="engine"><b>engine</b></dt>
  116. <dd>
  117. <p>Engine (loadable module) information and manipulation.</p>
  118. </dd>
  119. <dt id="errstr"><b>errstr</b></dt>
  120. <dd>
  121. <p>Error Number to Error String Conversion.</p>
  122. </dd>
  123. <dt id="gendh"><b>gendh</b></dt>
  124. <dd>
  125. <p>Generation of Diffie-Hellman Parameters. Obsoleted by <a href="../man1/dhparam.html">dhparam(1)</a>.</p>
  126. </dd>
  127. <dt id="gendsa"><b>gendsa</b></dt>
  128. <dd>
  129. <p>Generation of DSA Private Key from Parameters. Superseded by <a href="../man1/genpkey.html">genpkey(1)</a> and <a href="../man1/pkey.html">pkey(1)</a>.</p>
  130. </dd>
  131. <dt id="genpkey"><b>genpkey</b></dt>
  132. <dd>
  133. <p>Generation of Private Key or Parameters.</p>
  134. </dd>
  135. <dt id="genrsa"><b>genrsa</b></dt>
  136. <dd>
  137. <p>Generation of RSA Private Key. Superseded by <a href="../man1/genpkey.html">genpkey(1)</a>.</p>
  138. </dd>
  139. <dt id="nseq"><b>nseq</b></dt>
  140. <dd>
  141. <p>Create or examine a Netscape certificate sequence.</p>
  142. </dd>
  143. <dt id="ocsp"><b>ocsp</b></dt>
  144. <dd>
  145. <p>Online Certificate Status Protocol utility.</p>
  146. </dd>
  147. <dt id="passwd"><b>passwd</b></dt>
  148. <dd>
  149. <p>Generation of hashed passwords.</p>
  150. </dd>
  151. <dt id="pkcs12"><b>pkcs12</b></dt>
  152. <dd>
  153. <p>PKCS#12 Data Management.</p>
  154. </dd>
  155. <dt id="pkcs7"><b>pkcs7</b></dt>
  156. <dd>
  157. <p>PKCS#7 Data Management.</p>
  158. </dd>
  159. <dt id="pkcs8"><b>pkcs8</b></dt>
  160. <dd>
  161. <p>PKCS#8 format private key conversion tool.</p>
  162. </dd>
  163. <dt id="pkey"><b>pkey</b></dt>
  164. <dd>
  165. <p>Public and private key management.</p>
  166. </dd>
  167. <dt id="pkeyparam"><b>pkeyparam</b></dt>
  168. <dd>
  169. <p>Public key algorithm parameter management.</p>
  170. </dd>
  171. <dt id="pkeyutl"><b>pkeyutl</b></dt>
  172. <dd>
  173. <p>Public key algorithm cryptographic operation utility.</p>
  174. </dd>
  175. <dt id="prime"><b>prime</b></dt>
  176. <dd>
  177. <p>Compute prime numbers.</p>
  178. </dd>
  179. <dt id="rand"><b>rand</b></dt>
  180. <dd>
  181. <p>Generate pseudo-random bytes.</p>
  182. </dd>
  183. <dt id="rehash"><b>rehash</b></dt>
  184. <dd>
  185. <p>Create symbolic links to certificate and CRL files named by the hash values.</p>
  186. </dd>
  187. <dt id="req"><b>req</b></dt>
  188. <dd>
  189. <p>PKCS#10 X.509 Certificate Signing Request (CSR) Management.</p>
  190. </dd>
  191. <dt id="rsa"><b>rsa</b></dt>
  192. <dd>
  193. <p>RSA key management.</p>
  194. </dd>
  195. <dt id="rsautl"><b>rsautl</b></dt>
  196. <dd>
  197. <p>RSA utility for signing, verification, encryption, and decryption. Superseded by <a href="../man1/pkeyutl.html">pkeyutl(1)</a>.</p>
  198. </dd>
  199. <dt id="s_client"><b>s_client</b></dt>
  200. <dd>
  201. <p>This implements a generic SSL/TLS client which can establish a transparent connection to a remote server speaking SSL/TLS. It&#39;s intended for testing purposes only and provides only rudimentary interface functionality but internally uses mostly all functionality of the OpenSSL <b>ssl</b> library.</p>
  202. </dd>
  203. <dt id="s_server"><b>s_server</b></dt>
  204. <dd>
  205. <p>This implements a generic SSL/TLS server which accepts connections from remote clients speaking SSL/TLS. It&#39;s intended for testing purposes only and provides only rudimentary interface functionality but internally uses mostly all functionality of the OpenSSL <b>ssl</b> library. It provides both an own command line oriented protocol for testing SSL functions and a simple HTTP response facility to emulate an SSL/TLS-aware webserver.</p>
  206. </dd>
  207. <dt id="s_time"><b>s_time</b></dt>
  208. <dd>
  209. <p>SSL Connection Timer.</p>
  210. </dd>
  211. <dt id="sess_id"><b>sess_id</b></dt>
  212. <dd>
  213. <p>SSL Session Data Management.</p>
  214. </dd>
  215. <dt id="smime"><b>smime</b></dt>
  216. <dd>
  217. <p>S/MIME mail processing.</p>
  218. </dd>
  219. <dt id="speed"><b>speed</b></dt>
  220. <dd>
  221. <p>Algorithm Speed Measurement.</p>
  222. </dd>
  223. <dt id="spkac"><b>spkac</b></dt>
  224. <dd>
  225. <p>SPKAC printing and generating utility.</p>
  226. </dd>
  227. <dt id="srp"><b>srp</b></dt>
  228. <dd>
  229. <p>Maintain SRP password file.</p>
  230. </dd>
  231. <dt id="storeutl"><b>storeutl</b></dt>
  232. <dd>
  233. <p>Utility to list and display certificates, keys, CRLs, etc.</p>
  234. </dd>
  235. <dt id="ts"><b>ts</b></dt>
  236. <dd>
  237. <p>Time Stamping Authority tool (client/server).</p>
  238. </dd>
  239. <dt id="verify"><b>verify</b></dt>
  240. <dd>
  241. <p>X.509 Certificate Verification.</p>
  242. </dd>
  243. <dt id="version"><b>version</b></dt>
  244. <dd>
  245. <p>OpenSSL Version Information.</p>
  246. </dd>
  247. <dt id="x509"><b>x509</b></dt>
  248. <dd>
  249. <p>X.509 Certificate Data Management.</p>
  250. </dd>
  251. </dl>
  252. <h2 id="Message-Digest-Commands">Message Digest Commands</h2>
  253. <dl>
  254. <dt id="blake2b512"><b>blake2b512</b></dt>
  255. <dd>
  256. <p>BLAKE2b-512 Digest</p>
  257. </dd>
  258. <dt id="blake2s256"><b>blake2s256</b></dt>
  259. <dd>
  260. <p>BLAKE2s-256 Digest</p>
  261. </dd>
  262. <dt id="md2"><b>md2</b></dt>
  263. <dd>
  264. <p>MD2 Digest</p>
  265. </dd>
  266. <dt id="md4"><b>md4</b></dt>
  267. <dd>
  268. <p>MD4 Digest</p>
  269. </dd>
  270. <dt id="md5"><b>md5</b></dt>
  271. <dd>
  272. <p>MD5 Digest</p>
  273. </dd>
  274. <dt id="mdc2"><b>mdc2</b></dt>
  275. <dd>
  276. <p>MDC2 Digest</p>
  277. </dd>
  278. <dt id="rmd160"><b>rmd160</b></dt>
  279. <dd>
  280. <p>RMD-160 Digest</p>
  281. </dd>
  282. <dt id="sha1"><b>sha1</b></dt>
  283. <dd>
  284. <p>SHA-1 Digest</p>
  285. </dd>
  286. <dt id="sha224"><b>sha224</b></dt>
  287. <dd>
  288. <p>SHA-2 224 Digest</p>
  289. </dd>
  290. <dt id="sha256"><b>sha256</b></dt>
  291. <dd>
  292. <p>SHA-2 256 Digest</p>
  293. </dd>
  294. <dt id="sha384"><b>sha384</b></dt>
  295. <dd>
  296. <p>SHA-2 384 Digest</p>
  297. </dd>
  298. <dt id="sha512"><b>sha512</b></dt>
  299. <dd>
  300. <p>SHA-2 512 Digest</p>
  301. </dd>
  302. <dt id="sha3-224"><b>sha3-224</b></dt>
  303. <dd>
  304. <p>SHA-3 224 Digest</p>
  305. </dd>
  306. <dt id="sha3-256"><b>sha3-256</b></dt>
  307. <dd>
  308. <p>SHA-3 256 Digest</p>
  309. </dd>
  310. <dt id="sha3-384"><b>sha3-384</b></dt>
  311. <dd>
  312. <p>SHA-3 384 Digest</p>
  313. </dd>
  314. <dt id="sha3-512"><b>sha3-512</b></dt>
  315. <dd>
  316. <p>SHA-3 512 Digest</p>
  317. </dd>
  318. <dt id="shake128"><b>shake128</b></dt>
  319. <dd>
  320. <p>SHA-3 SHAKE128 Digest</p>
  321. </dd>
  322. <dt id="shake256"><b>shake256</b></dt>
  323. <dd>
  324. <p>SHA-3 SHAKE256 Digest</p>
  325. </dd>
  326. <dt id="sm3"><b>sm3</b></dt>
  327. <dd>
  328. <p>SM3 Digest</p>
  329. </dd>
  330. </dl>
  331. <h2 id="Encoding-and-Cipher-Commands">Encoding and Cipher Commands</h2>
  332. <p>The following aliases provide convenient access to the most used encodings and ciphers.</p>
  333. <p>Depending on how OpenSSL was configured and built, not all ciphers listed here may be present. See <a href="../man1/enc.html">enc(1)</a> for more information and command usage.</p>
  334. <dl>
  335. <dt id="aes128-aes-128-cbc-aes-128-cfb-aes-128-ctr-aes-128-ecb-aes-128-ofb"><b>aes128</b>, <b>aes-128-cbc</b>, <b>aes-128-cfb</b>, <b>aes-128-ctr</b>, <b>aes-128-ecb</b>, <b>aes-128-ofb</b></dt>
  336. <dd>
  337. <p>AES-128 Cipher</p>
  338. </dd>
  339. <dt id="aes192-aes-192-cbc-aes-192-cfb-aes-192-ctr-aes-192-ecb-aes-192-ofb"><b>aes192</b>, <b>aes-192-cbc</b>, <b>aes-192-cfb</b>, <b>aes-192-ctr</b>, <b>aes-192-ecb</b>, <b>aes-192-ofb</b></dt>
  340. <dd>
  341. <p>AES-192 Cipher</p>
  342. </dd>
  343. <dt id="aes256-aes-256-cbc-aes-256-cfb-aes-256-ctr-aes-256-ecb-aes-256-ofb"><b>aes256</b>, <b>aes-256-cbc</b>, <b>aes-256-cfb</b>, <b>aes-256-ctr</b>, <b>aes-256-ecb</b>, <b>aes-256-ofb</b></dt>
  344. <dd>
  345. <p>AES-256 Cipher</p>
  346. </dd>
  347. <dt id="aria128-aria-128-cbc-aria-128-cfb-aria-128-ctr-aria-128-ecb-aria-128-ofb"><b>aria128</b>, <b>aria-128-cbc</b>, <b>aria-128-cfb</b>, <b>aria-128-ctr</b>, <b>aria-128-ecb</b>, <b>aria-128-ofb</b></dt>
  348. <dd>
  349. <p>Aria-128 Cipher</p>
  350. </dd>
  351. <dt id="aria192-aria-192-cbc-aria-192-cfb-aria-192-ctr-aria-192-ecb-aria-192-ofb"><b>aria192</b>, <b>aria-192-cbc</b>, <b>aria-192-cfb</b>, <b>aria-192-ctr</b>, <b>aria-192-ecb</b>, <b>aria-192-ofb</b></dt>
  352. <dd>
  353. <p>Aria-192 Cipher</p>
  354. </dd>
  355. <dt id="aria256-aria-256-cbc-aria-256-cfb-aria-256-ctr-aria-256-ecb-aria-256-ofb"><b>aria256</b>, <b>aria-256-cbc</b>, <b>aria-256-cfb</b>, <b>aria-256-ctr</b>, <b>aria-256-ecb</b>, <b>aria-256-ofb</b></dt>
  356. <dd>
  357. <p>Aria-256 Cipher</p>
  358. </dd>
  359. <dt id="base64"><b>base64</b></dt>
  360. <dd>
  361. <p>Base64 Encoding</p>
  362. </dd>
  363. <dt id="bf-bf-cbc-bf-cfb-bf-ecb-bf-ofb"><b>bf</b>, <b>bf-cbc</b>, <b>bf-cfb</b>, <b>bf-ecb</b>, <b>bf-ofb</b></dt>
  364. <dd>
  365. <p>Blowfish Cipher</p>
  366. </dd>
  367. <dt id="camellia128-camellia-128-cbc-camellia-128-cfb-camellia-128-ctr-camellia-128-ecb-camellia-128-ofb"><b>camellia128</b>, <b>camellia-128-cbc</b>, <b>camellia-128-cfb</b>, <b>camellia-128-ctr</b>, <b>camellia-128-ecb</b>, <b>camellia-128-ofb</b></dt>
  368. <dd>
  369. <p>Camellia-128 Cipher</p>
  370. </dd>
  371. <dt id="camellia192-camellia-192-cbc-camellia-192-cfb-camellia-192-ctr-camellia-192-ecb-camellia-192-ofb"><b>camellia192</b>, <b>camellia-192-cbc</b>, <b>camellia-192-cfb</b>, <b>camellia-192-ctr</b>, <b>camellia-192-ecb</b>, <b>camellia-192-ofb</b></dt>
  372. <dd>
  373. <p>Camellia-192 Cipher</p>
  374. </dd>
  375. <dt id="camellia256-camellia-256-cbc-camellia-256-cfb-camellia-256-ctr-camellia-256-ecb-camellia-256-ofb"><b>camellia256</b>, <b>camellia-256-cbc</b>, <b>camellia-256-cfb</b>, <b>camellia-256-ctr</b>, <b>camellia-256-ecb</b>, <b>camellia-256-ofb</b></dt>
  376. <dd>
  377. <p>Camellia-256 Cipher</p>
  378. </dd>
  379. <dt id="cast-cast-cbc"><b>cast</b>, <b>cast-cbc</b></dt>
  380. <dd>
  381. <p>CAST Cipher</p>
  382. </dd>
  383. <dt id="cast5-cbc-cast5-cfb-cast5-ecb-cast5-ofb"><b>cast5-cbc</b>, <b>cast5-cfb</b>, <b>cast5-ecb</b>, <b>cast5-ofb</b></dt>
  384. <dd>
  385. <p>CAST5 Cipher</p>
  386. </dd>
  387. <dt id="chacha20"><b>chacha20</b></dt>
  388. <dd>
  389. <p>Chacha20 Cipher</p>
  390. </dd>
  391. <dt id="des-des-cbc-des-cfb-des-ecb-des-ede-des-ede-cbc-des-ede-cfb-des-ede-ofb-des-ofb"><b>des</b>, <b>des-cbc</b>, <b>des-cfb</b>, <b>des-ecb</b>, <b>des-ede</b>, <b>des-ede-cbc</b>, <b>des-ede-cfb</b>, <b>des-ede-ofb</b>, <b>des-ofb</b></dt>
  392. <dd>
  393. <p>DES Cipher</p>
  394. </dd>
  395. <dt id="des3-desx-des-ede3-des-ede3-cbc-des-ede3-cfb-des-ede3-ofb"><b>des3</b>, <b>desx</b>, <b>des-ede3</b>, <b>des-ede3-cbc</b>, <b>des-ede3-cfb</b>, <b>des-ede3-ofb</b></dt>
  396. <dd>
  397. <p>Triple-DES Cipher</p>
  398. </dd>
  399. <dt id="idea-idea-cbc-idea-cfb-idea-ecb-idea-ofb"><b>idea</b>, <b>idea-cbc</b>, <b>idea-cfb</b>, <b>idea-ecb</b>, <b>idea-ofb</b></dt>
  400. <dd>
  401. <p>IDEA Cipher</p>
  402. </dd>
  403. <dt id="rc2-rc2-cbc-rc2-cfb-rc2-ecb-rc2-ofb"><b>rc2</b>, <b>rc2-cbc</b>, <b>rc2-cfb</b>, <b>rc2-ecb</b>, <b>rc2-ofb</b></dt>
  404. <dd>
  405. <p>RC2 Cipher</p>
  406. </dd>
  407. <dt id="rc4"><b>rc4</b></dt>
  408. <dd>
  409. <p>RC4 Cipher</p>
  410. </dd>
  411. <dt id="rc5-rc5-cbc-rc5-cfb-rc5-ecb-rc5-ofb"><b>rc5</b>, <b>rc5-cbc</b>, <b>rc5-cfb</b>, <b>rc5-ecb</b>, <b>rc5-ofb</b></dt>
  412. <dd>
  413. <p>RC5 Cipher</p>
  414. </dd>
  415. <dt id="seed-seed-cbc-seed-cfb-seed-ecb-seed-ofb"><b>seed</b>, <b>seed-cbc</b>, <b>seed-cfb</b>, <b>seed-ecb</b>, <b>seed-ofb</b></dt>
  416. <dd>
  417. <p>SEED Cipher</p>
  418. </dd>
  419. <dt id="sm4-sm4-cbc-sm4-cfb-sm4-ctr-sm4-ecb-sm4-ofb"><b>sm4</b>, <b>sm4-cbc</b>, <b>sm4-cfb</b>, <b>sm4-ctr</b>, <b>sm4-ecb</b>, <b>sm4-ofb</b></dt>
  420. <dd>
  421. <p>SM4 Cipher</p>
  422. </dd>
  423. </dl>
  424. <h1 id="OPTIONS">OPTIONS</h1>
  425. <p>Details of which options are available depend on the specific command. This section describes some common options with common behavior.</p>
  426. <h2 id="Common-Options">Common Options</h2>
  427. <dl>
  428. <dt id="help"><b>-help</b></dt>
  429. <dd>
  430. <p>Provides a terse summary of all options.</p>
  431. </dd>
  432. </dl>
  433. <h2 id="Pass-Phrase-Options">Pass Phrase Options</h2>
  434. <p>Several commands accept password arguments, typically using <b>-passin</b> and <b>-passout</b> for input and output passwords respectively. These allow the password to be obtained from a variety of sources. Both of these options take a single argument whose format is described below. If no password argument is given and a password is required then the user is prompted to enter one: this will typically be read from the current terminal with echoing turned off.</p>
  435. <p>Note that character encoding may be relevant, please see <a href="../man7/passphrase-encoding.html">passphrase-encoding(7)</a>.</p>
  436. <dl>
  437. <dt id="pass:password"><b>pass:password</b></dt>
  438. <dd>
  439. <p>The actual password is <b>password</b>. Since the password is visible to utilities (like &#39;ps&#39; under Unix) this form should only be used where security is not important.</p>
  440. </dd>
  441. <dt id="env:var"><b>env:var</b></dt>
  442. <dd>
  443. <p>Obtain the password from the environment variable <b>var</b>. Since the environment of other processes is visible on certain platforms (e.g. ps under certain Unix OSes) this option should be used with caution.</p>
  444. </dd>
  445. <dt id="file:pathname"><b>file:pathname</b></dt>
  446. <dd>
  447. <p>The first line of <b>pathname</b> is the password. If the same <b>pathname</b> argument is supplied to <b>-passin</b> and <b>-passout</b> arguments then the first line will be used for the input password and the next line for the output password. <b>pathname</b> need not refer to a regular file: it could for example refer to a device or named pipe.</p>
  448. </dd>
  449. <dt id="fd:number"><b>fd:number</b></dt>
  450. <dd>
  451. <p>Read the password from the file descriptor <b>number</b>. This can be used to send the data via a pipe for example.</p>
  452. </dd>
  453. <dt id="stdin"><b>stdin</b></dt>
  454. <dd>
  455. <p>Read the password from standard input.</p>
  456. </dd>
  457. </dl>
  458. <h1 id="SEE-ALSO">SEE ALSO</h1>
  459. <p><a href="../man1/asn1parse.html">asn1parse(1)</a>, <a href="../man1/ca.html">ca(1)</a>, <a href="../man1/ciphers.html">ciphers(1)</a>, <a href="../man1/cms.html">cms(1)</a>, <a href="../man5/config.html">config(5)</a>, <a href="../man1/crl.html">crl(1)</a>, <a href="../man1/crl2pkcs7.html">crl2pkcs7(1)</a>, <a href="../man1/dgst.html">dgst(1)</a>, <a href="../man1/dhparam.html">dhparam(1)</a>, <a href="../man1/dsa.html">dsa(1)</a>, <a href="../man1/dsaparam.html">dsaparam(1)</a>, <a href="../man1/ec.html">ec(1)</a>, <a href="../man1/ecparam.html">ecparam(1)</a>, <a href="../man1/enc.html">enc(1)</a>, <a href="../man1/engine.html">engine(1)</a>, <a href="../man1/errstr.html">errstr(1)</a>, <a href="../man1/gendsa.html">gendsa(1)</a>, <a href="../man1/genpkey.html">genpkey(1)</a>, <a href="../man1/genrsa.html">genrsa(1)</a>, <a href="../man1/nseq.html">nseq(1)</a>, <a href="../man1/ocsp.html">ocsp(1)</a>, <a href="../man1/passwd.html">passwd(1)</a>, <a href="../man1/pkcs12.html">pkcs12(1)</a>, <a href="../man1/pkcs7.html">pkcs7(1)</a>, <a href="../man1/pkcs8.html">pkcs8(1)</a>, <a href="../man1/pkey.html">pkey(1)</a>, <a href="../man1/pkeyparam.html">pkeyparam(1)</a>, <a href="../man1/pkeyutl.html">pkeyutl(1)</a>, <a href="../man1/prime.html">prime(1)</a>, <a href="../man1/rand.html">rand(1)</a>, <a href="../man1/rehash.html">rehash(1)</a>, <a href="../man1/req.html">req(1)</a>, <a href="../man1/rsa.html">rsa(1)</a>, <a href="../man1/rsautl.html">rsautl(1)</a>, <a href="../man1/s_client.html">s_client(1)</a>, <a href="../man1/s_server.html">s_server(1)</a>, <a href="../man1/s_time.html">s_time(1)</a>, <a href="../man1/sess_id.html">sess_id(1)</a>, <a href="../man1/smime.html">smime(1)</a>, <a href="../man1/speed.html">speed(1)</a>, <a href="../man1/spkac.html">spkac(1)</a>, <a href="../man1/srp.html">srp(1)</a>, <a href="../man1/storeutl.html">storeutl(1)</a>, <a href="../man1/ts.html">ts(1)</a>, <a href="../man1/verify.html">verify(1)</a>, <a href="../man1/version.html">version(1)</a>, <a href="../man1/x509.html">x509(1)</a>, <a href="../man7/crypto.html">crypto(7)</a>, <a href="../man7/ssl.html">ssl(7)</a>, <a href="../man5/x509v3_config.html">x509v3_config(5)</a></p>
  460. <h1 id="HISTORY">HISTORY</h1>
  461. <p>The <b>list-</b><i>XXX</i><b>-algorithms</b> pseudo-commands were added in OpenSSL 1.0.0; For notes on the availability of other commands, see their individual manual pages.</p>
  462. <h1 id="COPYRIGHT">COPYRIGHT</h1>
  463. <p>Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.</p>
  464. <p>Licensed under the OpenSSL license (the &quot;License&quot;). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <a href="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</a>.</p>
  465. </body>
  466. </html>