Is it possible to use telnet to access a site via HTTPS?

0

I try to connect to link using Telnet,

telnet https://es.stackoverflow.com/ 443

I get an answer

telnet: could not resolve https://es.stackoverflow.com/443: Name or service not known

If I try this way

telnet es.stackoverflow.com 443

I can connect but when trying to build the request, the server closes the connection before

Trying 151.101.1.69...
Connected to es.stackoverflow.com.
Escape character is '^]'.
GET / HTTP/1.1
Connection closed by foreign host.
  • Am I doing something wrong or is it just not possible to do it?
  • If not, is there any other tool that allows me to try to connect using a console? Debian use
  • asked by dwarandae 05.01.2018 в 15:32
    source

    1 answer

    2

    For sites with HTTPS you must use openssl , telnet is colo compatible with HTTP

    openssl s_client -connect https://es.stackoverflow.com/:443
    
      

    With telnet , the web server waits patiently for you to write the   application completely. s_client NO .   So write the request in a text editor and have it ready   to paste right after the details of the SSL certificate are   scroll.

    I've read that you use Debian, but just in case you have to use Ubuntu:

    gnutls https://es.stackoverflow.com/:443
    
        
    answered by 05.01.2018 / 15:46
    source