Troubleshooting
If your query returns an error even after configuring and embedding a client SSL certificate, check the following settings.
On your terminal, use the following command to check whether an SSL/TLS connection can be established successfully between the client and the API endpoint.
If the SSL/TLS handshake cannot be completed, check whether the certificate and the private key are correct.
Check whether mTLS has been enabled for the correct host. The host should match the API endpoint that you want to protect.
To review mTLS rules:
-
Select Security > WAF > Custom rules.
-
On a specific rule, select Edit.
-
On that rule, check whether:
-
The Expression Preview is correct.
-
The hostname, if defined, matches your API endpoint. For example, for the API endpoint
api.trackers.ninja/time
, the rule should look like:
-
-
To edit the rule, either use the user interface or select Edit expression.