I'm working on homework assignment for my college. Task is to fetch web page on HTTPS using nc (netcat).
To fetch a page over HTTP, I do this:
cat request.txt | nc -w 5 <someserver> 80
In request.txt I have HTTP 1.1 request
GET / HTTP/1.1 Host: <someserver>
Now... This works fine. How can I fetch web page that uses HTTPS?
I get page certificate like this. And this is the point in which I'm stuck
openssl s_client -connect <someserver>:443