Unable to establish SSL connection, how do I fix my SSL cert?

后端 未结 9 1030
醉话见心
醉话见心 2020-11-27 14:17

I\'m trying to wget to my own box, and it can\'t be an internal address in the wget (so says another developer).

When I wget, I get this:



        
9条回答
  •  野性不改
    2020-11-27 15:03

    SSL23_GET_SERVER_HELLO:unknown protocol

    This error happens when OpenSSL receives something other than a ServerHello in a protocol version it understands from the server. It can happen if the server answers with a plain (unencrypted) HTTP. It can also happen if the server only supports e.g. TLS 1.2 and the client does not understand that protocol version. Normally, servers are backwards compatible to at least SSL 3.0 / TLS 1.0, but maybe this specific server isn't (by implementation or configuration).

    It is unclear whether you attempted to pass --no-check-certificate or not. I would be rather surprised if that would work.

    A simple test is to use wget (or a browser) to request http://example.com:443 (note the http://, not https://); if it works, SSL is not enabled on port 443. To further debug this, use openssl s_client with the -debug option, which right before the error message dumps the first few bytes of the server response which OpenSSL was unable to parse. This may help to identify the problem, especially if the server does not answer with a ServerHello message. To see what exactly OpenSSL is expecting, check the source: look for SSL_R_UNKNOWN_PROTOCOL in ssl/s23_clnt.c.

    In any case, looking at the apache error log may provide some insight too.

提交回复
热议问题