Hello, @Issam Sisbane !
Why is NGINX giving me a fake certificate error?
There are 3 conditions that need to be met for NGINX to show the correct certificate. If any of the conditions are not met, then you will see the fake certificate issue you are describing:
- The CN (Common Name) field (or at least one of the SANs/Subject Alternative Names) in the certificate.
- The host field in the ingress rule.
- The host used by the client to make the request.
If one of these does not match, then the client will be presented with a fake certificate.
The first suggestion would be to confirm which hostname/FQDN is being invoked by the client in this case. Is it the same one that is used when accessing using the browser?