Commit d239bbc
Correctly add
Follow-up to #11344
Prior to this fix, the `customize_hostname_check` option was incorrectly
added to the general options passed to `httpc:request`, which results in
the following error when the request is made:
```
[debug] <0.1.0> Enabling wildcard-aware hostname verification for HTTP client connections
[notice] <0.1.0> Invalid option {customize_hostname_check,
[notice] <0.1.0> [{match_fun,#Fun<public_key.6.112534691>}]} ignored
[notice] <0.1.0>
```
With this fix, you can see that `customize_hostname_check` is added to
the `ssl` section of the options:
```
1> redbug:start("rabbit_auth_backend_http:ssl_options->return").
...
...
...
% rabbit_auth_backend_http:ssl_options/0 -> [{ssl,
[{customize_hostname_check,
[{match_fun,
#Fun<public_key.6.112534691>}]},
{versions,
['tlsv1.3','tlsv1.2',
'tlsv1.1',tlsv1]},
{hibernate_after,6000},
{keyfile,
"key.pem"},
{depth,10},
{crl_check,false},
{certfile,
"certificate.pem"},
{cacertfile,
"ca_certificate.pem"},
{fail_if_no_peer_cert,false},
{verify,verify_peer}]}]
```
(cherry picked from commit 4360e05)customize_hostname_check to ssl options1 parent eac2ae2 commit d239bbc
File tree
1 file changed
+6
-11
lines changed- deps/rabbitmq_auth_backend_http/src
1 file changed
+6
-11
lines changedLines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
180 | | - | |
| 182 | + | |
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| |||
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
191 | | - | |
| 193 | + | |
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
195 | 197 | | |
196 | | - | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | 217 | | |
222 | 218 | | |
223 | 219 | | |
224 | 220 | | |
225 | | - | |
226 | 221 | | |
227 | 222 | | |
228 | 223 | | |
| |||
236 | 231 | | |
237 | 232 | | |
238 | 233 | | |
239 | | - | |
| 234 | + | |
240 | 235 | | |
241 | 236 | | |
242 | 237 | | |
| |||
0 commit comments