All consumer requests are failing with an HTTP 400 Bad Request error at the DLB layer when mTLS is enabled. The requests are rejected at the DLB and do not reach the Mule applications.
Review DLB logs to determine whether the response originates from the DLB or the Mule application. If the response is generated by the DLB, proceed with the following steps. Else, refer this KB article.
If the DLB is returning an HTTP 400 directly, validate the client certificate used for mTLS authentication with:
openssl x509 -text -noout -in client_ca.pem -purpose
Inspect the Extended Key Usage section of the certificate and confirm it includes TLS Web Client Authentication. For example:
X509v3 Extended Key Usage:
TLS Web Server Authentication
If TLS Web Client Authentication is missing, reissue or update the certificate to include the appropriate client authentication usage.
Sample DLB log for http 400:
1.2.3.4 - - [date:09:34:45 +0000] "GET /hellomulesoft= HTTP/1.1" 400 180 "-" "GuzzleHttp/7" "-" rt=0.000 uct="-" uht="-" urt="-" ua="-" us="-" proto="TLSv1.2" cipher="DHE-RSA-AES256-GCM-SHA384"
Sample certificate output:
% openssl x509 -text -noout -in cert.pem -purpose
Certificate purposes:
SSL client : Yes
SSL client CA : No
SSL server : Yes
SSL server CA : No
Netscape SSL server : Yes
Netscape SSL server CA : No
S/MIME signing : Yes
S/MIME signing CA : No
S/MIME encryption : Yes
S/MIME encryption CA : No
CRL signing : No
CRL signing CA : No
Any Purpose : Yes
Any Purpose CA : Yes
OCSP helper : Yes
OCSP helper CA : No
Time Stamp signing : No
Time Stamp signing CA : No
Code signing : No
Code signing CA : No005318612

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.