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