Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Nov 11, 2025

There's an edge case in LDAP SSL configuration. If you set...

auth_ldap.use_ssl = true

...but nothing else, you'll eventually hit this error:

{error, {options, incompatible,
    [{verify, verify_peer}, {cacerts, undefined}]}}

This is due to the fact that without any SSL options, the rabbit_ssl_options:fix_client/1 function won't be hit, and thus system certs won't be added via public_key:cacerts_get/0 and cacerts option.

This PR adds verify, verify_peer as the default SSL option and ensures that rabbit_ssl_options:fix_client/1 is always called. Since verify_peer is the default since OTP 26, we can just add it here.


This is an automatic backport of pull request #14937 done by Mergify.

There's an edge case in LDAP SSL configuration. If you set...

```
auth_ldap.use_ssl = true
```

...but nothing else, you'll eventually hit this error:

```
{error, {options, incompatible,
    [{verify, verify_peer}, {cacerts, undefined}]}}
```

This is due to the fact that without any SSL options, the
`rabbit_ssl_options:fix_client/1` function won't be hit, and thus system
certs won't be added via `public_key:cacerts_get/0` and `cacerts`
option.

This PR adds `verify, verify_peer` as the default SSL option and ensures
that `rabbit_ssl_options:fix_client/1` is always called. Since
`verify_peer` is the default since OTP 26, we can just add it here.

(cherry picked from commit 0f3e5b4)
@michaelklishin michaelklishin added this to the 4.2.1 milestone Nov 11, 2025
@michaelklishin michaelklishin merged commit 507324e into v4.2.x Nov 12, 2025
574 of 575 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.2.x/pr-14937 branch November 12, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants