curl error 35 : unknown SSL protocol error in connection

后端 未结 8 1353
梦如初夏
梦如初夏 2021-02-08 12:08
$ curl -I https://9.185.173.135
curl: (35) Unknown SSL protocol error in connection to 9.185.173.135:443

This is an secured page that I need to access.

8条回答
  •  孤独总比滥情好
    2021-02-08 12:33

    I got the same error when running curl/httpie against a Tomcat server on my localhost deployed from Eclipse. It turns out that default server.xml deployed by Eclipse disables https. Specifically, the section below is commented out in server.xml.

    
    

    After uncommenting it out and adding the two keystore parameters, the curl command starts working (with --insecure option if the certificate is self-signed).

    
               keystoreFile="/path/to/your/keystore"
               keystorePass="yourpass" />
    

提交回复
热议问题