Error during SSL Handshake with remote server

前端 未结 3 693
迷失自我
迷失自我 2021-01-29 19:18

I have Apache2 (listening on 443) and a web app running on Tomcat7 (listening on 8443) on Ubuntu.

I set apache2 as reverse proxy s

相关标签:
3条回答
  • 2021-01-29 19:47

    The comment by MK pointed me in the right direction.

    In the case of Apache 2.4 and up, there are different defaults and a new directive.

    I am running Apache 2.4.6, and I had to add the following directives to get it working:

    SSLProxyEngine on
    SSLProxyVerify none 
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyCheckPeerExpire off
    
    0 讨论(0)
  • 2021-01-29 19:58

    I have 2 servers setup on docker, reverse proxy & web server. This error started happening for all my websites all of a sudden after 1 year. When setting up earlier, I generated a self signed certificate on the web server.

    So, I had to generate the SSL certificate again and it started working...

    openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ssl.key -out ssl.crt

    0 讨论(0)
  • 2021-01-29 20:00

    Faced the same problem as OP:

    • Tomcat returned response when accessing directly via SOAP UI
    • Didn't load html files
    • When used Apache properties mentioned by the previous answer, web-page appeared but AngularJS couldn't get HTTP response

    Tomcat SSL certificate was expired while a browser showed it as secure - Apache certificate was far from expiration. Updating Tomcat KeyStore file solved the problem.

    0 讨论(0)
提交回复
热议问题