Commit 4360e05
committed
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}]}]
```customize_hostname_check to ssl options1 parent a8901bc commit 4360e05
1 file changed
Lines changed: 5 additions & 4 deletions
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | | - | |
| 252 | + | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
| 260 | + | |
260 | 261 | | |
261 | | - | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
0 commit comments