Hi @maurits moehn ,
TLS connect error: SSL routines: unexpected eof while reading
The error occurs when there is a problem with the TLS connection between your self-hosted gateway and the Azure API Management service, possibly due to issues like certificate validation.
Steps to troubleshoot the issue:
- If you're suspecting that an outbound proxy is intercepting the traffic and replacing the TLS certificate, you should check whether any proxy settings are configured in your OpenShift environment. If there's a proxy, ensure that it allows the traffic to go to Azure without modifying the TLS handshake.
- Make sure the TLS certificate used by your self-hosted gateway is valid for the internal API Management endpoint. Validate that the certificate is not expired and that the certificate chain is complete, including all intermediate certificates.
- If you're using a private Certificate Authority (CA), ensure that the CA's certificate is added to the trusted root certificate authorities on the self-hosted gateway.
- Verify that your self-hosted gateway has the required outbound TCP/IP connectivity to Azure on port 443. Make sure the DNS configuration is set up correctly to resolve the internal IP address of the configuration endpoint.
- Monitor logs to capture any errors during the TLS handshake. This might provide additional context on why the handshake is failing.
References:
- Self-hosted gateway overview
- Certificate validation documents
- Monitoring and Troubleshooting Azure APIM Self-Hosted Gateway
Hope it helps!
Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.
If you have any other questions, let me know in the "comments" and I would be happy to help you.