SSL_CONF_cmd.3ossl 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818
  1. .\" -*- mode: troff; coding: utf-8 -*-
  2. .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43)
  3. .\"
  4. .\" Standard preamble:
  5. .\" ========================================================================
  6. .de Sp \" Vertical space (when we can't use .PP)
  7. .if t .sp .5v
  8. .if n .sp
  9. ..
  10. .de Vb \" Begin verbatim text
  11. .ft CW
  12. .nf
  13. .ne \\$1
  14. ..
  15. .de Ve \" End verbatim text
  16. .ft R
  17. .fi
  18. ..
  19. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
  20. .ie n \{\
  21. . ds C` ""
  22. . ds C' ""
  23. 'br\}
  24. .el\{\
  25. . ds C`
  26. . ds C'
  27. 'br\}
  28. .\"
  29. .\" Escape single quotes in literal strings from groff's Unicode transform.
  30. .ie \n(.g .ds Aq \(aq
  31. .el .ds Aq '
  32. .\"
  33. .\" If the F register is >0, we'll generate index entries on stderr for
  34. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  35. .\" entries marked with X<> in POD. Of course, you'll have to process the
  36. .\" output yourself in some meaningful fashion.
  37. .\"
  38. .\" Avoid warning from groff about undefined register 'F'.
  39. .de IX
  40. ..
  41. .nr rF 0
  42. .if \n(.g .if rF .nr rF 1
  43. .if (\n(rF:(\n(.g==0)) \{\
  44. . if \nF \{\
  45. . de IX
  46. . tm Index:\\$1\t\\n%\t"\\$2"
  47. ..
  48. . if !\nF==2 \{\
  49. . nr % 0
  50. . nr F 2
  51. . \}
  52. . \}
  53. .\}
  54. .rr rF
  55. .\" ========================================================================
  56. .\"
  57. .IX Title "SSL_CONF_CMD 3ossl"
  58. .TH SSL_CONF_CMD 3ossl 2025-01-17 3.4.0 OpenSSL
  59. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  60. .\" way too many mistakes in technical documents.
  61. .if n .ad l
  62. .nh
  63. .SH NAME
  64. SSL_CONF_cmd_value_type,
  65. SSL_CONF_cmd \- send configuration command
  66. .SH SYNOPSIS
  67. .IX Header "SYNOPSIS"
  68. .Vb 1
  69. \& #include <openssl/ssl.h>
  70. \&
  71. \& int SSL_CONF_cmd(SSL_CONF_CTX *ctx, const char *option, const char *value);
  72. \& int SSL_CONF_cmd_value_type(SSL_CONF_CTX *ctx, const char *option);
  73. .Ve
  74. .SH DESCRIPTION
  75. .IX Header "DESCRIPTION"
  76. The function \fBSSL_CONF_cmd()\fR performs configuration operation \fBoption\fR with
  77. optional parameter \fBvalue\fR on \fBctx\fR. Its purpose is to simplify application
  78. configuration of \fBSSL_CTX\fR or \fBSSL\fR structures by providing a common
  79. framework for command line options or configuration files.
  80. .PP
  81. \&\fBSSL_CONF_cmd_value_type()\fR returns the type of value that \fBoption\fR refers to.
  82. .SH "SUPPORTED COMMAND LINE COMMANDS"
  83. .IX Header "SUPPORTED COMMAND LINE COMMANDS"
  84. Currently supported \fBoption\fR names for command lines (i.e. when the
  85. flag \fBSSL_CONF_FLAG_CMDLINE\fR is set) are listed below. Note: all \fBoption\fR
  86. names are case sensitive. Unless otherwise stated commands can be used by
  87. both clients and servers and the \fBvalue\fR parameter is not used. The default
  88. prefix for command line commands is \fB\-\fR and that is reflected below.
  89. .IP \fB\-bugs\fR 4
  90. .IX Item "-bugs"
  91. Various bug workarounds are set, same as setting \fBSSL_OP_ALL\fR.
  92. .IP \fB\-no_comp\fR 4
  93. .IX Item "-no_comp"
  94. Disables support for SSL/TLS compression, same as setting
  95. \&\fBSSL_OP_NO_COMPRESSION\fR.
  96. As of OpenSSL 1.1.0, compression is off by default.
  97. .IP \fB\-comp\fR 4
  98. .IX Item "-comp"
  99. Enables support for SSL/TLS compression, same as clearing
  100. \&\fBSSL_OP_NO_COMPRESSION\fR.
  101. This command was introduced in OpenSSL 1.1.0.
  102. As of OpenSSL 1.1.0, compression is off by default. TLS compression can only be
  103. used in security level 1 or lower. From OpenSSL 3.2.0 and above the default
  104. security level is 2, so this option will have no effect without also changing
  105. the security level. See \fBSSL_CTX_set_security_level\fR\|(3).
  106. .IP \fB\-no_ticket\fR 4
  107. .IX Item "-no_ticket"
  108. Disables support for session tickets, same as setting \fBSSL_OP_NO_TICKET\fR.
  109. .IP \fB\-serverpref\fR 4
  110. .IX Item "-serverpref"
  111. Use server and not client preference order when determining which cipher suite,
  112. signature algorithm or elliptic curve to use for an incoming connection.
  113. Equivalent to \fBSSL_OP_CIPHER_SERVER_PREFERENCE\fR. Only used by servers.
  114. .IP \fB\-client_renegotiation\fR 4
  115. .IX Item "-client_renegotiation"
  116. Allows servers to accept client-initiated renegotiation. Equivalent to
  117. setting \fBSSL_OP_ALLOW_CLIENT_RENEGOTIATION\fR.
  118. Only used by servers.
  119. .IP \fB\-legacy_renegotiation\fR 4
  120. .IX Item "-legacy_renegotiation"
  121. Permits the use of unsafe legacy renegotiation. Equivalent to setting
  122. \&\fBSSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION\fR.
  123. .IP \fB\-no_renegotiation\fR 4
  124. .IX Item "-no_renegotiation"
  125. Disables all attempts at renegotiation in TLSv1.2 and earlier, same as setting
  126. \&\fBSSL_OP_NO_RENEGOTIATION\fR.
  127. .IP \fB\-no_resumption_on_reneg\fR 4
  128. .IX Item "-no_resumption_on_reneg"
  129. Sets \fBSSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION\fR. Only used by servers.
  130. .IP "\fB\-legacy_server_connect\fR, \fB\-no_legacy_server_connect\fR" 4
  131. .IX Item "-legacy_server_connect, -no_legacy_server_connect"
  132. Permits or prohibits the use of unsafe legacy renegotiation for OpenSSL
  133. clients only. Equivalent to setting or clearing \fBSSL_OP_LEGACY_SERVER_CONNECT\fR.
  134. .IP \fB\-prioritize_chacha\fR 4
  135. .IX Item "-prioritize_chacha"
  136. Prioritize ChaCha ciphers when the client has a ChaCha20 cipher at the top of
  137. its preference list. This usually indicates a client without AES hardware
  138. acceleration (e.g. mobile) is in use. Equivalent to \fBSSL_OP_PRIORITIZE_CHACHA\fR.
  139. Only used by servers. Requires \fB\-serverpref\fR.
  140. .IP \fB\-allow_no_dhe_kex\fR 4
  141. .IX Item "-allow_no_dhe_kex"
  142. In TLSv1.3 allow a non\-(ec)dhe based key exchange mode on resumption. This means
  143. that there will be no forward secrecy for the resumed session.
  144. .IP \fB\-prefer_no_dhe_kex\fR 4
  145. .IX Item "-prefer_no_dhe_kex"
  146. In TLSv1.3, on resumption let the server prefer a non\-(ec)dhe based key
  147. exchange mode over an (ec)dhe based one. Requires \fB\-allow_no_dhe_kex\fR.
  148. Equivalent to \fBSSL_OP_PREFER_NO_DHE_KEX\fR. Only used by servers.
  149. .IP \fB\-strict\fR 4
  150. .IX Item "-strict"
  151. Enables strict mode protocol handling. Equivalent to setting
  152. \&\fBSSL_CERT_FLAG_TLS_STRICT\fR.
  153. .IP "\fB\-sigalgs\fR \fIalgs\fR" 4
  154. .IX Item "-sigalgs algs"
  155. This sets the supported signature algorithms for TLSv1.2 and TLSv1.3.
  156. For clients this value is used directly for the supported signature
  157. algorithms extension. For servers it is used to determine which signature
  158. algorithms to support.
  159. .Sp
  160. The \fBalgs\fR argument should be a colon separated list of signature
  161. algorithms in order of decreasing preference of the form \fBalgorithm+hash\fR
  162. or \fBsignature_scheme\fR. For the default providers shipped with OpenSSL,
  163. \&\fBalgorithm\fR is one of \fBRSA\fR, \fBDSA\fR or \fBECDSA\fR and
  164. \&\fBhash\fR is a supported algorithm OID short name such as \fBSHA1\fR, \fBSHA224\fR,
  165. \&\fBSHA256\fR, \fBSHA384\fR or \fBSHA512\fR. Note: algorithm and hash names are case
  166. sensitive. \fBsignature_scheme\fR is one of the signature schemes defined in
  167. TLSv1.3, specified using the IETF name, e.g., \fBecdsa_secp256r1_sha256\fR,
  168. \&\fBed25519\fR, or \fBrsa_pss_pss_sha256\fR. Additional providers may make available
  169. further algorithms via the TLS_SIGALG capability.
  170. See "CAPABILITIES" in \fBprovider\-base\fR\|(7).
  171. .Sp
  172. If this option is not set then all signature algorithms supported by all
  173. activated providers are permissible.
  174. .Sp
  175. Note: algorithms which specify a PKCS#1 v1.5 signature scheme (either by
  176. using \fBRSA\fR as the \fBalgorithm\fR or by using one of the \fBrsa_pkcs1_*\fR
  177. identifiers) are ignored in TLSv1.3 and will not be negotiated.
  178. .IP "\fB\-client_sigalgs\fR \fIalgs\fR" 4
  179. .IX Item "-client_sigalgs algs"
  180. This sets the supported signature algorithms associated with client
  181. authentication for TLSv1.2 and TLSv1.3. For servers the \fBalgs\fR is used
  182. in the \fBsignature_algorithms\fR field of a \fBCertificateRequest\fR message.
  183. For clients it is used to determine which signature algorithm to use with
  184. the client certificate. If a server does not request a certificate this
  185. option has no effect.
  186. .Sp
  187. The syntax of \fBalgs\fR is identical to \fB\-sigalgs\fR. If not set, then the
  188. value set for \fB\-sigalgs\fR will be used instead.
  189. .IP "\fB\-groups\fR \fIgroups\fR" 4
  190. .IX Item "-groups groups"
  191. This sets the supported groups. For clients, the groups are sent using
  192. the supported groups extension. For servers, it is used to determine which
  193. group to use. This setting affects groups used for signatures (in TLSv1.2
  194. and earlier) and key exchange. The first group listed will also be used
  195. for the \fBkey_share\fR sent by a client in a TLSv1.3 \fBClientHello\fR.
  196. .Sp
  197. The \fBgroups\fR argument is a colon separated list of groups. The group can
  198. be either the \fBNIST\fR name (e.g. \fBP\-256\fR), some other commonly used name
  199. where applicable (e.g. \fBX25519\fR, \fBffdhe2048\fR) or an OpenSSL OID name
  200. (e.g. \fBprime256v1\fR). Group names are case sensitive. The list should be
  201. in order of preference with the most preferred group first.
  202. .Sp
  203. Currently supported groups for \fBTLSv1.3\fR are \fBP\-256\fR, \fBP\-384\fR, \fBP\-521\fR,
  204. \&\fBX25519\fR, \fBX448\fR, \fBffdhe2048\fR, \fBffdhe3072\fR, \fBffdhe4096\fR, \fBffdhe6144\fR,
  205. \&\fBffdhe8192\fR.
  206. .IP "\fB\-curves\fR \fIgroups\fR" 4
  207. .IX Item "-curves groups"
  208. This is a synonym for the \fB\-groups\fR command.
  209. .IP "\fB\-named_curve\fR \fIcurve\fR" 4
  210. .IX Item "-named_curve curve"
  211. This sets the temporary curve used for ephemeral ECDH modes. Only used
  212. by servers.
  213. .IP \fB\-tx_cert_comp\fR 4
  214. .IX Item "-tx_cert_comp"
  215. Enables support for sending TLSv1.3 compressed certificates.
  216. .IP \fB\-no_tx_cert_comp\fR 4
  217. .IX Item "-no_tx_cert_comp"
  218. Disables support for sending TLSv1.3 compressed certificates.
  219. .IP \fB\-rx_cert_comp\fR 4
  220. .IX Item "-rx_cert_comp"
  221. Enables support for receiving TLSv1.3 compressed certificates.
  222. .IP \fB\-no_rx_cert_comp\fR 4
  223. .IX Item "-no_rx_cert_comp"
  224. Disables support for receiving TLSv1.3 compressed certificates.
  225. .IP \fB\-comp\fR 4
  226. .IX Item "-comp"
  227. The \fBgroups\fR argument is a curve name or the special value \fBauto\fR which
  228. picks an appropriate curve based on client and server preferences. The
  229. curve can be either the \fBNIST\fR name (e.g. \fBP\-256\fR) or an OpenSSL OID name
  230. (e.g. \fBprime256v1\fR). Curve names are case sensitive.
  231. .IP "\fB\-cipher\fR \fIciphers\fR" 4
  232. .IX Item "-cipher ciphers"
  233. Sets the TLSv1.2 and below ciphersuite list to \fBciphers\fR. This list will be
  234. combined with any configured TLSv1.3 ciphersuites. Note: syntax checking
  235. of \fBciphers\fR is currently not performed unless a \fBSSL\fR or \fBSSL_CTX\fR
  236. structure is associated with \fBctx\fR.
  237. .IP "\fB\-ciphersuites\fR \fI1.3ciphers\fR" 4
  238. .IX Item "-ciphersuites 1.3ciphers"
  239. Sets the available ciphersuites for TLSv1.3 to value. This is a
  240. colon-separated list of TLSv1.3 ciphersuite names in order of preference. This
  241. list will be combined any configured TLSv1.2 and below ciphersuites.
  242. See \fBopenssl\-ciphers\fR\|(1) for more information.
  243. .IP "\fB\-min_protocol\fR \fIminprot\fR, \fB\-max_protocol\fR \fImaxprot\fR" 4
  244. .IX Item "-min_protocol minprot, -max_protocol maxprot"
  245. Sets the minimum and maximum supported protocol.
  246. Currently supported protocol values are \fBSSLv3\fR, \fBTLSv1\fR, \fBTLSv1.1\fR,
  247. \&\fBTLSv1.2\fR, \fBTLSv1.3\fR for TLS; \fBDTLSv1\fR, \fBDTLSv1.2\fR for DTLS, and \fBNone\fR
  248. for no limit.
  249. If either the lower or upper bound is not specified then only the other bound
  250. applies, if specified.
  251. If your application supports both TLS and DTLS you can specify any of these
  252. options twice, once with a bound for TLS and again with an appropriate bound
  253. for DTLS.
  254. To restrict the supported protocol versions use these commands rather than the
  255. deprecated alternative commands below.
  256. .IP "\fB\-record_padding\fR \fIpadding\fR" 4
  257. .IX Item "-record_padding padding"
  258. Controls use of TLSv1.3 record layer padding. \fBpadding\fR is a string of the
  259. form "number[,number]" where the (required) first number is the padding block
  260. size (in octets) for application data, and the optional second number is the
  261. padding block size for handshake and alert messages. If the optional second
  262. number is omitted, the same padding will be applied to all messages.
  263. .Sp
  264. Padding attempts to pad TLSv1.3 records so that they are a multiple of the set
  265. length on send. A value of 0 or 1 turns off padding as relevant. Otherwise, the
  266. values must be >1 or <=16384.
  267. .IP \fB\-debug_broken_protocol\fR 4
  268. .IX Item "-debug_broken_protocol"
  269. Ignored.
  270. .IP \fB\-no_middlebox\fR 4
  271. .IX Item "-no_middlebox"
  272. Turn off "middlebox compatibility", as described below.
  273. .SS "Additional Options"
  274. .IX Subsection "Additional Options"
  275. The following options are accepted by \fBSSL_CONF_cmd()\fR, but are not
  276. processed by the OpenSSL commands.
  277. .IP "\fB\-cert\fR \fIfile\fR" 4
  278. .IX Item "-cert file"
  279. Attempts to use \fBfile\fR as the certificate for the appropriate context. It
  280. currently uses \fBSSL_CTX_use_certificate_chain_file()\fR if an \fBSSL_CTX\fR
  281. structure is set or \fBSSL_use_certificate_file()\fR with filetype PEM if an
  282. \&\fBSSL\fR structure is set. This option is only supported if certificate
  283. operations are permitted.
  284. .IP "\fB\-key\fR \fIfile\fR" 4
  285. .IX Item "-key file"
  286. Attempts to use \fBfile\fR as the private key for the appropriate context. This
  287. option is only supported if certificate operations are permitted. Note:
  288. if no \fB\-key\fR option is set then a private key is not loaded unless the
  289. flag \fBSSL_CONF_FLAG_REQUIRE_PRIVATE\fR is set.
  290. .IP "\fB\-dhparam\fR \fIfile\fR" 4
  291. .IX Item "-dhparam file"
  292. Attempts to use \fBfile\fR as the set of temporary DH parameters for
  293. the appropriate context. This option is only supported if certificate
  294. operations are permitted.
  295. .IP "\fB\-no_ssl3\fR, \fB\-no_tls1\fR, \fB\-no_tls1_1\fR, \fB\-no_tls1_2\fR, \fB\-no_tls1_3\fR" 4
  296. .IX Item "-no_ssl3, -no_tls1, -no_tls1_1, -no_tls1_2, -no_tls1_3"
  297. Disables protocol support for SSLv3, TLSv1.0, TLSv1.1, TLSv1.2 or TLSv1.3 by
  298. setting the corresponding options \fBSSL_OP_NO_SSLv3\fR, \fBSSL_OP_NO_TLSv1\fR,
  299. \&\fBSSL_OP_NO_TLSv1_1\fR, \fBSSL_OP_NO_TLSv1_2\fR and \fBSSL_OP_NO_TLSv1_3\fR
  300. respectively. These options are deprecated, use \fB\-min_protocol\fR and
  301. \&\fB\-max_protocol\fR instead.
  302. .IP "\fB\-anti_replay\fR, \fB\-no_anti_replay\fR" 4
  303. .IX Item "-anti_replay, -no_anti_replay"
  304. Switches replay protection, on or off respectively. With replay protection on,
  305. OpenSSL will automatically detect if a session ticket has been used more than
  306. once, TLSv1.3 has been negotiated, and early data is enabled on the server. A
  307. full handshake is forced if a session ticket is used a second or subsequent
  308. time. Anti-Replay is on by default unless overridden by a configuration file and
  309. is only used by servers. Anti-replay measures are required for compliance with
  310. the TLSv1.3 specification. Some applications may be able to mitigate the replay
  311. risks in other ways and in such cases the built-in OpenSSL functionality is not
  312. required. Switching off anti-replay is equivalent to \fBSSL_OP_NO_ANTI_REPLAY\fR.
  313. .SH "SUPPORTED CONFIGURATION FILE COMMANDS"
  314. .IX Header "SUPPORTED CONFIGURATION FILE COMMANDS"
  315. Currently supported \fBoption\fR names for configuration files (i.e., when the
  316. flag \fBSSL_CONF_FLAG_FILE\fR is set) are listed below. All configuration file
  317. \&\fBoption\fR names are case insensitive so \fBsignaturealgorithms\fR is recognised
  318. as well as \fBSignatureAlgorithms\fR. Unless otherwise stated the \fBvalue\fR names
  319. are also case insensitive.
  320. .PP
  321. Note: the command prefix (if set) alters the recognised \fBoption\fR values.
  322. .IP \fBCipherString\fR 4
  323. .IX Item "CipherString"
  324. Sets the ciphersuite list for TLSv1.2 and below to \fBvalue\fR. This list will be
  325. combined with any configured TLSv1.3 ciphersuites. Note: syntax
  326. checking of \fBvalue\fR is currently not performed unless an \fBSSL\fR or \fBSSL_CTX\fR
  327. structure is associated with \fBctx\fR.
  328. .IP \fBCiphersuites\fR 4
  329. .IX Item "Ciphersuites"
  330. Sets the available ciphersuites for TLSv1.3 to \fBvalue\fR. This is a
  331. colon-separated list of TLSv1.3 ciphersuite names in order of preference. This
  332. list will be combined any configured TLSv1.2 and below ciphersuites.
  333. See \fBopenssl\-ciphers\fR\|(1) for more information.
  334. .IP \fBCertificate\fR 4
  335. .IX Item "Certificate"
  336. Attempts to use the file \fBvalue\fR as the certificate for the appropriate
  337. context. It currently uses \fBSSL_CTX_use_certificate_chain_file()\fR if an \fBSSL_CTX\fR
  338. structure is set or \fBSSL_use_certificate_file()\fR with filetype PEM if an \fBSSL\fR
  339. structure is set. This option is only supported if certificate operations
  340. are permitted.
  341. .IP \fBPrivateKey\fR 4
  342. .IX Item "PrivateKey"
  343. Attempts to use the file \fBvalue\fR as the private key for the appropriate
  344. context. This option is only supported if certificate operations
  345. are permitted. Note: if no \fBPrivateKey\fR option is set then a private key is
  346. not loaded unless the \fBSSL_CONF_FLAG_REQUIRE_PRIVATE\fR is set.
  347. .IP "\fBChainCAFile\fR, \fBChainCAPath\fR, \fBVerifyCAFile\fR, \fBVerifyCAPath\fR" 4
  348. .IX Item "ChainCAFile, ChainCAPath, VerifyCAFile, VerifyCAPath"
  349. These options indicate a file or directory used for building certificate
  350. chains or verifying certificate chains. These options are only supported
  351. if certificate operations are permitted.
  352. .IP \fBRequestCAFile\fR 4
  353. .IX Item "RequestCAFile"
  354. This option indicates a file containing a set of certificates in PEM form.
  355. The subject names of the certificates are sent to the peer in the
  356. \&\fBcertificate_authorities\fR extension for TLS 1.3 (in ClientHello or
  357. CertificateRequest) or in a certificate request for previous versions or
  358. TLS.
  359. .IP \fBServerInfoFile\fR 4
  360. .IX Item "ServerInfoFile"
  361. Attempts to use the file \fBvalue\fR in the "serverinfo" extension using the
  362. function SSL_CTX_use_serverinfo_file.
  363. .IP \fBDHParameters\fR 4
  364. .IX Item "DHParameters"
  365. Attempts to use the file \fBvalue\fR as the set of temporary DH parameters for
  366. the appropriate context. This option is only supported if certificate
  367. operations are permitted.
  368. .IP \fBRecordPadding\fR 4
  369. .IX Item "RecordPadding"
  370. Controls use of TLSv1.3 record layer padding. \fBvalue\fR is a string of the form
  371. "number[,number]" where the (required) first number is the padding block size
  372. (in octets) for application data, and the optional second number is the padding
  373. block size for handshake and alert messages. If the optional second number is
  374. omitted, the same padding will be applied to all messages.
  375. .Sp
  376. Padding attempts to pad TLSv1.3 records so that they are a multiple of the set
  377. length on send. A value of 0 or 1 turns off padding as relevant. Otherwise, the
  378. values must be >1 or <=16384.
  379. .IP \fBSignatureAlgorithms\fR 4
  380. .IX Item "SignatureAlgorithms"
  381. This sets the supported signature algorithms for TLSv1.2 and TLSv1.3.
  382. For clients this
  383. value is used directly for the supported signature algorithms extension. For
  384. servers it is used to determine which signature algorithms to support.
  385. .Sp
  386. The \fBvalue\fR argument should be a colon separated list of signature algorithms
  387. in order of decreasing preference of the form \fBalgorithm+hash\fR or
  388. \&\fBsignature_scheme\fR. For the default providers shipped with OpenSSL,
  389. \&\fBalgorithm\fR is one of \fBRSA\fR, \fBDSA\fR or \fBECDSA\fR and \fBhash\fR is a supported
  390. algorithm OID short name such as \fBSHA1\fR, \fBSHA224\fR, \fBSHA256\fR, \fBSHA384\fR
  391. or \fBSHA512\fR.
  392. Note: algorithm and hash names are case sensitive.
  393. \&\fBsignature_scheme\fR is one of the signature schemes defined in TLSv1.3,
  394. specified using the IETF name, e.g., \fBecdsa_secp256r1_sha256\fR, \fBed25519\fR,
  395. or \fBrsa_pss_pss_sha256\fR.
  396. Additional providers may make available further algorithms via the TLS_SIGALG
  397. capability. See "CAPABILITIES" in \fBprovider\-base\fR\|(7).
  398. .Sp
  399. If this option is not set then all signature algorithms supported by all
  400. activated providers are permissible.
  401. .Sp
  402. Note: algorithms which specify a PKCS#1 v1.5 signature scheme (either by
  403. using \fBRSA\fR as the \fBalgorithm\fR or by using one of the \fBrsa_pkcs1_*\fR
  404. identifiers) are ignored in TLSv1.3 and will not be negotiated.
  405. .IP \fBClientSignatureAlgorithms\fR 4
  406. .IX Item "ClientSignatureAlgorithms"
  407. This sets the supported signature algorithms associated with client
  408. authentication for TLSv1.2 and TLSv1.3.
  409. For servers the value is used in the
  410. \&\fBsignature_algorithms\fR field of a \fBCertificateRequest\fR message.
  411. For clients it is
  412. used to determine which signature algorithm to use with the client certificate.
  413. If a server does not request a certificate this option has no effect.
  414. .Sp
  415. The syntax of \fBvalue\fR is identical to \fBSignatureAlgorithms\fR. If not set then
  416. the value set for \fBSignatureAlgorithms\fR will be used instead.
  417. .IP \fBGroups\fR 4
  418. .IX Item "Groups"
  419. This sets the supported groups. For clients, the groups are
  420. sent using the supported groups extension. For servers, it is used
  421. to determine which group to use. This setting affects groups used for
  422. signatures (in TLSv1.2 and earlier) and key exchange. The first group listed
  423. will also be used for the \fBkey_share\fR sent by a client in a TLSv1.3
  424. \&\fBClientHello\fR.
  425. .Sp
  426. The \fBvalue\fR argument is a colon separated list of groups. The group can be
  427. either the \fBNIST\fR name (e.g. \fBP\-256\fR), some other commonly used name where
  428. applicable (e.g. \fBX25519\fR, \fBffdhe2048\fR) or an OpenSSL OID name
  429. (e.g. \fBprime256v1\fR). Group names are case sensitive. The list should be in
  430. order of preference with the most preferred group first.
  431. .Sp
  432. Currently supported groups for \fBTLSv1.3\fR are \fBP\-256\fR, \fBP\-384\fR, \fBP\-521\fR,
  433. \&\fBX25519\fR, \fBX448\fR, \fBffdhe2048\fR, \fBffdhe3072\fR, \fBffdhe4096\fR, \fBffdhe6144\fR,
  434. \&\fBffdhe8192\fR.
  435. .IP \fBCurves\fR 4
  436. .IX Item "Curves"
  437. This is a synonym for the "Groups" command.
  438. .IP \fBMinProtocol\fR 4
  439. .IX Item "MinProtocol"
  440. This sets the minimum supported SSL, TLS or DTLS version.
  441. .Sp
  442. Currently supported protocol values are \fBSSLv3\fR, \fBTLSv1\fR, \fBTLSv1.1\fR,
  443. \&\fBTLSv1.2\fR, \fBTLSv1.3\fR, \fBDTLSv1\fR and \fBDTLSv1.2\fR.
  444. The SSL and TLS bounds apply only to TLS-based contexts, while the DTLS bounds
  445. apply only to DTLS-based contexts.
  446. The command can be repeated with one instance setting a TLS bound, and the
  447. other setting a DTLS bound.
  448. The value \fBNone\fR applies to both types of contexts and disables the limits.
  449. .IP \fBMaxProtocol\fR 4
  450. .IX Item "MaxProtocol"
  451. This sets the maximum supported SSL, TLS or DTLS version.
  452. .Sp
  453. Currently supported protocol values are \fBSSLv3\fR, \fBTLSv1\fR, \fBTLSv1.1\fR,
  454. \&\fBTLSv1.2\fR, \fBTLSv1.3\fR, \fBDTLSv1\fR and \fBDTLSv1.2\fR.
  455. The SSL and TLS bounds apply only to TLS-based contexts, while the DTLS bounds
  456. apply only to DTLS-based contexts.
  457. The command can be repeated with one instance setting a TLS bound, and the
  458. other setting a DTLS bound.
  459. The value \fBNone\fR applies to both types of contexts and disables the limits.
  460. .IP \fBProtocol\fR 4
  461. .IX Item "Protocol"
  462. This can be used to enable or disable certain versions of the SSL,
  463. TLS or DTLS protocol.
  464. .Sp
  465. The \fBvalue\fR argument is a comma separated list of supported protocols
  466. to enable or disable.
  467. If a protocol is preceded by \fB\-\fR that version is disabled.
  468. .Sp
  469. All protocol versions are enabled by default.
  470. You need to disable at least one protocol version for this setting have any
  471. effect.
  472. Only enabling some protocol versions does not disable the other protocol
  473. versions.
  474. .Sp
  475. Currently supported protocol values are \fBSSLv3\fR, \fBTLSv1\fR, \fBTLSv1.1\fR,
  476. \&\fBTLSv1.2\fR, \fBTLSv1.3\fR, \fBDTLSv1\fR and \fBDTLSv1.2\fR.
  477. The special value \fBALL\fR refers to all supported versions.
  478. .Sp
  479. This can't enable protocols that are disabled using \fBMinProtocol\fR
  480. or \fBMaxProtocol\fR, but can disable protocols that are still allowed
  481. by them.
  482. .Sp
  483. The \fBProtocol\fR command is fragile and deprecated; do not use it.
  484. Use \fBMinProtocol\fR and \fBMaxProtocol\fR instead.
  485. If you do use \fBProtocol\fR, make sure that the resulting range of enabled
  486. protocols has no "holes", e.g. if TLS 1.0 and TLS 1.2 are both enabled, make
  487. sure to also leave TLS 1.1 enabled.
  488. .IP \fBOptions\fR 4
  489. .IX Item "Options"
  490. The \fBvalue\fR argument is a comma separated list of various flags to set.
  491. If a flag string is preceded \fB\-\fR it is disabled.
  492. See the \fBSSL_CTX_set_options\fR\|(3) function for more details of
  493. individual options.
  494. .Sp
  495. Each option is listed below. Where an operation is enabled by default
  496. the \fB\-flag\fR syntax is needed to disable it.
  497. .Sp
  498. \&\fBSessionTicket\fR: session ticket support, enabled by default. Inverse of
  499. \&\fBSSL_OP_NO_TICKET\fR: that is \fB\-SessionTicket\fR is the same as setting
  500. \&\fBSSL_OP_NO_TICKET\fR.
  501. .Sp
  502. \&\fBCompression\fR: SSL/TLS compression support, disabled by default. Inverse
  503. of \fBSSL_OP_NO_COMPRESSION\fR.
  504. .Sp
  505. \&\fBEmptyFragments\fR: use empty fragments as a countermeasure against a
  506. SSL 3.0/TLS 1.0 protocol vulnerability affecting CBC ciphers. It
  507. is set by default. Inverse of \fBSSL_OP_DONT_INSERT_EMPTY_FRAGMENTS\fR.
  508. .Sp
  509. \&\fBBugs\fR: enable various bug workarounds. Same as \fBSSL_OP_ALL\fR.
  510. .Sp
  511. \&\fBDHSingle\fR: enable single use DH keys, set by default. Inverse of
  512. \&\fBSSL_OP_DH_SINGLE\fR. Only used by servers.
  513. .Sp
  514. \&\fBECDHSingle\fR: enable single use ECDH keys, set by default. Inverse of
  515. \&\fBSSL_OP_ECDH_SINGLE\fR. Only used by servers.
  516. .Sp
  517. \&\fBServerPreference\fR: use server and not client preference order when
  518. determining which cipher suite, signature algorithm or elliptic curve
  519. to use for an incoming connection. Equivalent to
  520. \&\fBSSL_OP_CIPHER_SERVER_PREFERENCE\fR. Only used by servers.
  521. .Sp
  522. \&\fBPrioritizeChaCha\fR: prioritizes ChaCha ciphers when the client has a
  523. ChaCha20 cipher at the top of its preference list. This usually indicates
  524. a mobile client is in use. Equivalent to \fBSSL_OP_PRIORITIZE_CHACHA\fR.
  525. Only used by servers.
  526. .Sp
  527. \&\fBNoResumptionOnRenegotiation\fR: set
  528. \&\fBSSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION\fR flag. Only used by servers.
  529. .Sp
  530. \&\fBNoRenegotiation\fR: disables all attempts at renegotiation in TLSv1.2 and
  531. earlier, same as setting \fBSSL_OP_NO_RENEGOTIATION\fR.
  532. .Sp
  533. \&\fBUnsafeLegacyRenegotiation\fR: permits the use of unsafe legacy renegotiation.
  534. Equivalent to \fBSSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION\fR.
  535. .Sp
  536. \&\fBUnsafeLegacyServerConnect\fR: permits the use of unsafe legacy renegotiation
  537. for OpenSSL clients only. Equivalent to \fBSSL_OP_LEGACY_SERVER_CONNECT\fR.
  538. .Sp
  539. \&\fBEncryptThenMac\fR: use encrypt-then-mac extension, enabled by
  540. default. Inverse of \fBSSL_OP_NO_ENCRYPT_THEN_MAC\fR: that is,
  541. \&\fB\-EncryptThenMac\fR is the same as setting \fBSSL_OP_NO_ENCRYPT_THEN_MAC\fR.
  542. .Sp
  543. \&\fBAllowNoDHEKEX\fR: In TLSv1.3 allow a non\-(ec)dhe based key exchange mode on
  544. resumption. This means that there will be no forward secrecy for the resumed
  545. session. Equivalent to \fBSSL_OP_ALLOW_NO_DHE_KEX\fR.
  546. .Sp
  547. \&\fBPreferNoDHEKEX\fR: In TLSv1.3, on resumption let the server prefer a
  548. non\-(ec)dhe based key exchange mode over an (ec)dhe based one. Requires
  549. \&\fBAllowNoDHEKEX\fR. Equivalent to \fBSSL_OP_PREFER_NO_DHE_KEX\fR. Only used by
  550. servers.
  551. .Sp
  552. \&\fBMiddleboxCompat\fR: If set then dummy Change Cipher Spec (CCS) messages are sent
  553. in TLSv1.3. This has the effect of making TLSv1.3 look more like TLSv1.2 so that
  554. middleboxes that do not understand TLSv1.3 will not drop the connection. This
  555. option is set by default. A future version of OpenSSL may not set this by
  556. default. Equivalent to \fBSSL_OP_ENABLE_MIDDLEBOX_COMPAT\fR.
  557. .Sp
  558. \&\fBAntiReplay\fR: If set then OpenSSL will automatically detect if a session ticket
  559. has been used more than once, TLSv1.3 has been negotiated, and early data is
  560. enabled on the server. A full handshake is forced if a session ticket is used a
  561. second or subsequent time. This option is set by default and is only used by
  562. servers. Anti-replay measures are required to comply with the TLSv1.3
  563. specification. Some applications may be able to mitigate the replay risks in
  564. other ways and in such cases the built-in OpenSSL functionality is not required.
  565. Disabling anti-replay is equivalent to setting \fBSSL_OP_NO_ANTI_REPLAY\fR.
  566. .Sp
  567. \&\fBExtendedMasterSecret\fR: use extended master secret extension, enabled by
  568. default. Inverse of \fBSSL_OP_NO_EXTENDED_MASTER_SECRET\fR: that is,
  569. \&\fB\-ExtendedMasterSecret\fR is the same as setting \fBSSL_OP_NO_EXTENDED_MASTER_SECRET\fR.
  570. .Sp
  571. \&\fBCANames\fR: use CA names extension, enabled by
  572. default. Inverse of \fBSSL_OP_DISABLE_TLSEXT_CA_NAMES\fR: that is,
  573. \&\fB\-CANames\fR is the same as setting \fBSSL_OP_DISABLE_TLSEXT_CA_NAMES\fR.
  574. .Sp
  575. \&\fBKTLS\fR: Enables kernel TLS if support has been compiled in, and it is supported
  576. by the negotiated ciphersuites and extensions. Equivalent to
  577. \&\fBSSL_OP_ENABLE_KTLS\fR.
  578. .Sp
  579. \&\fBStrictCertCheck\fR: Enable strict certificate checking. Equivalent to
  580. setting \fBSSL_CERT_FLAG_TLS_STRICT\fR with \fBSSL_CTX_set_cert_flags()\fR.
  581. .Sp
  582. \&\fBTxCertificateCompression\fR: support sending compressed certificates, enabled by
  583. default. Inverse of \fBSSL_OP_NO_TX_CERTIFICATE_COMPRESSION\fR: that is,
  584. \&\fB\-TxCertificateCompression\fR is the same as setting \fBSSL_OP_NO_TX_CERTIFICATE_COMPRESSION\fR.
  585. .Sp
  586. \&\fBRxCertificateCompression\fR: support receiving compressed certificates, enabled by
  587. default. Inverse of \fBSSL_OP_NO_RX_CERTIFICATE_COMPRESSION\fR: that is,
  588. \&\fB\-RxCertificateCompression\fR is the same as setting \fBSSL_OP_NO_RX_CERTIFICATE_COMPRESSION\fR.
  589. .Sp
  590. \&\fBKTLSTxZerocopySendfile\fR: use the zerocopy TX mode of \fBsendfile()\fR, which gives
  591. a performance boost when used with KTLS hardware offload. Note that invalid TLS
  592. records might be transmitted if the file is changed while being sent. This
  593. option has no effect if \fBKTLS\fR is not enabled. Equivalent to
  594. \&\fBSSL_OP_ENABLE_KTLS_TX_ZEROCOPY_SENDFILE\fR. This option only applies to Linux.
  595. KTLS sendfile on FreeBSD doesn't offer an option to disable zerocopy and
  596. always runs in this mode.
  597. .Sp
  598. \&\fBIgnoreUnexpectedEOF\fR: Equivalent to \fBSSL_OP_IGNORE_UNEXPECTED_EOF\fR.
  599. You should only enable this option if the protocol running over TLS can detect
  600. a truncation attack itself, and that the application is checking for that
  601. truncation attack.
  602. .IP \fBVerifyMode\fR 4
  603. .IX Item "VerifyMode"
  604. The \fBvalue\fR argument is a comma separated list of flags to set.
  605. .Sp
  606. \&\fBPeer\fR enables peer verification: for clients only.
  607. .Sp
  608. \&\fBRequest\fR requests but does not require a certificate from the client.
  609. Servers only.
  610. .Sp
  611. \&\fBRequire\fR requests and requires a certificate from the client: an error
  612. occurs if the client does not present a certificate. Servers only.
  613. .Sp
  614. \&\fBOnce\fR requests a certificate from a client only on the initial connection:
  615. not when renegotiating. Servers only.
  616. .Sp
  617. \&\fBRequestPostHandshake\fR configures the connection to support requests but does
  618. not require a certificate from the client post-handshake. A certificate will
  619. not be requested during the initial handshake. The server application must
  620. provide a mechanism to request a certificate post-handshake. Servers only.
  621. TLSv1.3 only.
  622. .Sp
  623. \&\fBRequiresPostHandshake\fR configures the connection to support requests and
  624. requires a certificate from the client post-handshake: an error occurs if the
  625. client does not present a certificate. A certificate will not be requested
  626. during the initial handshake. The server application must provide a mechanism
  627. to request a certificate post-handshake. Servers only. TLSv1.3 only.
  628. .IP "\fBClientCAFile\fR, \fBClientCAPath\fR" 4
  629. .IX Item "ClientCAFile, ClientCAPath"
  630. A file or directory of certificates in PEM format whose names are used as the
  631. set of acceptable names for client CAs. Servers only. This option is only
  632. supported if certificate operations are permitted.
  633. .SH "SUPPORTED COMMAND TYPES"
  634. .IX Header "SUPPORTED COMMAND TYPES"
  635. The function \fBSSL_CONF_cmd_value_type()\fR currently returns one of the following
  636. types:
  637. .IP \fBSSL_CONF_TYPE_UNKNOWN\fR 4
  638. .IX Item "SSL_CONF_TYPE_UNKNOWN"
  639. The \fBoption\fR string is unrecognised, this return value can be use to flag
  640. syntax errors.
  641. .IP \fBSSL_CONF_TYPE_STRING\fR 4
  642. .IX Item "SSL_CONF_TYPE_STRING"
  643. The value is a string without any specific structure.
  644. .IP \fBSSL_CONF_TYPE_FILE\fR 4
  645. .IX Item "SSL_CONF_TYPE_FILE"
  646. The value is a filename.
  647. .IP \fBSSL_CONF_TYPE_DIR\fR 4
  648. .IX Item "SSL_CONF_TYPE_DIR"
  649. The value is a directory name.
  650. .IP \fBSSL_CONF_TYPE_NONE\fR 4
  651. .IX Item "SSL_CONF_TYPE_NONE"
  652. The value string is not used e.g. a command line option which doesn't take an
  653. argument.
  654. .SH NOTES
  655. .IX Header "NOTES"
  656. The order of operations is significant. This can be used to set either defaults
  657. or values which cannot be overridden. For example if an application calls:
  658. .PP
  659. .Vb 2
  660. \& SSL_CONF_cmd(ctx, "Protocol", "\-SSLv3");
  661. \& SSL_CONF_cmd(ctx, userparam, uservalue);
  662. .Ve
  663. .PP
  664. it will disable SSLv3 support by default but the user can override it. If
  665. however the call sequence is:
  666. .PP
  667. .Vb 2
  668. \& SSL_CONF_cmd(ctx, userparam, uservalue);
  669. \& SSL_CONF_cmd(ctx, "Protocol", "\-SSLv3");
  670. .Ve
  671. .PP
  672. SSLv3 is \fBalways\fR disabled and attempt to override this by the user are
  673. ignored.
  674. .PP
  675. By checking the return code of \fBSSL_CONF_cmd()\fR it is possible to query if a
  676. given \fBoption\fR is recognised, this is useful if \fBSSL_CONF_cmd()\fR values are
  677. mixed with additional application specific operations.
  678. .PP
  679. For example an application might call \fBSSL_CONF_cmd()\fR and if it returns
  680. \&\-2 (unrecognised command) continue with processing of application specific
  681. commands.
  682. .PP
  683. Applications can also use \fBSSL_CONF_cmd()\fR to process command lines though the
  684. utility function \fBSSL_CONF_cmd_argv()\fR is normally used instead. One way
  685. to do this is to set the prefix to an appropriate value using
  686. \&\fBSSL_CONF_CTX_set1_prefix()\fR, pass the current argument to \fBoption\fR and the
  687. following argument to \fBvalue\fR (which may be NULL).
  688. .PP
  689. In this case if the return value is positive then it is used to skip that
  690. number of arguments as they have been processed by \fBSSL_CONF_cmd()\fR. If \-2 is
  691. returned then \fBoption\fR is not recognised and application specific arguments
  692. can be checked instead. If \-3 is returned a required argument is missing
  693. and an error is indicated. If 0 is returned some other error occurred and
  694. this can be reported back to the user.
  695. .PP
  696. The function \fBSSL_CONF_cmd_value_type()\fR can be used by applications to
  697. check for the existence of a command or to perform additional syntax
  698. checking or translation of the command value. For example if the return
  699. value is \fBSSL_CONF_TYPE_FILE\fR an application could translate a relative
  700. pathname to an absolute pathname.
  701. .SH "RETURN VALUES"
  702. .IX Header "RETURN VALUES"
  703. \&\fBSSL_CONF_cmd()\fR returns 1 if the value of \fBoption\fR is recognised and \fBvalue\fR is
  704. \&\fBNOT\fR used and 2 if both \fBoption\fR and \fBvalue\fR are used. In other words it
  705. returns the number of arguments processed. This is useful when processing
  706. command lines.
  707. .PP
  708. A return value of \-2 means \fBoption\fR is not recognised.
  709. .PP
  710. A return value of \-3 means \fBoption\fR is recognised and the command requires a
  711. value but \fBvalue\fR is NULL.
  712. .PP
  713. A return code of 0 indicates that both \fBoption\fR and \fBvalue\fR are valid but an
  714. error occurred attempting to perform the operation: for example due to an
  715. error in the syntax of \fBvalue\fR in this case the error queue may provide
  716. additional information.
  717. .SH EXAMPLES
  718. .IX Header "EXAMPLES"
  719. Set supported signature algorithms:
  720. .PP
  721. .Vb 1
  722. \& SSL_CONF_cmd(ctx, "SignatureAlgorithms", "ECDSA+SHA256:RSA+SHA256:DSA+SHA256");
  723. .Ve
  724. .PP
  725. There are various ways to select the supported protocols.
  726. .PP
  727. This set the minimum protocol version to TLSv1, and so disables SSLv3.
  728. This is the recommended way to disable protocols.
  729. .PP
  730. .Vb 1
  731. \& SSL_CONF_cmd(ctx, "MinProtocol", "TLSv1");
  732. .Ve
  733. .PP
  734. The following also disables SSLv3:
  735. .PP
  736. .Vb 1
  737. \& SSL_CONF_cmd(ctx, "Protocol", "\-SSLv3");
  738. .Ve
  739. .PP
  740. The following will first enable all protocols, and then disable
  741. SSLv3.
  742. If no protocol versions were disabled before this has the same effect as
  743. "\-SSLv3", but if some versions were disables this will re-enable them before
  744. disabling SSLv3.
  745. .PP
  746. .Vb 1
  747. \& SSL_CONF_cmd(ctx, "Protocol", "ALL,\-SSLv3");
  748. .Ve
  749. .PP
  750. Only enable TLSv1.2:
  751. .PP
  752. .Vb 2
  753. \& SSL_CONF_cmd(ctx, "MinProtocol", "TLSv1.2");
  754. \& SSL_CONF_cmd(ctx, "MaxProtocol", "TLSv1.2");
  755. .Ve
  756. .PP
  757. This also only enables TLSv1.2:
  758. .PP
  759. .Vb 1
  760. \& SSL_CONF_cmd(ctx, "Protocol", "\-ALL,TLSv1.2");
  761. .Ve
  762. .PP
  763. Disable TLS session tickets:
  764. .PP
  765. .Vb 1
  766. \& SSL_CONF_cmd(ctx, "Options", "\-SessionTicket");
  767. .Ve
  768. .PP
  769. Enable compression:
  770. .PP
  771. .Vb 1
  772. \& SSL_CONF_cmd(ctx, "Options", "Compression");
  773. .Ve
  774. .PP
  775. Set supported curves to P\-256, P\-384:
  776. .PP
  777. .Vb 1
  778. \& SSL_CONF_cmd(ctx, "Curves", "P\-256:P\-384");
  779. .Ve
  780. .SH "SEE ALSO"
  781. .IX Header "SEE ALSO"
  782. \&\fBssl\fR\|(7),
  783. \&\fBSSL_CONF_CTX_new\fR\|(3),
  784. \&\fBSSL_CONF_CTX_set_flags\fR\|(3),
  785. \&\fBSSL_CONF_CTX_set1_prefix\fR\|(3),
  786. \&\fBSSL_CONF_CTX_set_ssl_ctx\fR\|(3),
  787. \&\fBSSL_CONF_cmd_argv\fR\|(3),
  788. \&\fBSSL_CTX_set_options\fR\|(3)
  789. .SH HISTORY
  790. .IX Header "HISTORY"
  791. The \fBSSL_CONF_cmd()\fR function was added in OpenSSL 1.0.2.
  792. .PP
  793. The \fBSSL_OP_NO_SSL2\fR option doesn't have effect since 1.1.0, but the macro
  794. is retained for backwards compatibility.
  795. .PP
  796. The \fBSSL_CONF_TYPE_NONE\fR was added in OpenSSL 1.1.0. In earlier versions of
  797. OpenSSL passing a command which didn't take an argument would return
  798. \&\fBSSL_CONF_TYPE_UNKNOWN\fR.
  799. .PP
  800. \&\fBMinProtocol\fR and \fBMaxProtocol\fR where added in OpenSSL 1.1.0.
  801. .PP
  802. \&\fBAllowNoDHEKEX\fR and \fBPrioritizeChaCha\fR were added in OpenSSL 1.1.1.
  803. .PP
  804. The \fBUnsafeLegacyServerConnect\fR option is no longer set by default from
  805. OpenSSL 3.0.
  806. .PP
  807. The \fBTxCertificateCompression\fR and \fBRxCertificateCompression\fR options were
  808. added in OpenSSL 3.2.
  809. .PP
  810. \&\fBPreferNoDHEKEX\fR was added in OpenSSL 3.3.
  811. .SH COPYRIGHT
  812. .IX Header "COPYRIGHT"
  813. Copyright 2012\-2024 The OpenSSL Project Authors. All Rights Reserved.
  814. .PP
  815. Licensed under the Apache License 2.0 (the "License"). You may not use
  816. this file except in compliance with the License. You can obtain a copy
  817. in the file LICENSE in the source distribution or at
  818. <https://www.openssl.org/source/license.html>.