[Tipz] netcat and HTTPS

Ari Pollak ari at ccs.neu.edu
Tue Nov 9 15:01:20 EST 2004


You can also accomplish this with either openssl or GET from Perl's LWP 
package:

% tsocks openssl s_client -connect www.ccs.neu.edu:443
.. all sorts of SSL stuff output here...
GET / HTTP/1.0

or

% GET https://www.ccs.neu.edu

Ian Langworth wrote:
> To use netcat with an HTTP server over SSL, drop this into
> a config file, such as 'stunnel.conf':
> 
>     verify=0
>     foreground=yes
>     client=yes
>     pid=
>     [https]
>     accept=localhost:8080
>     connect=example.com:443
>     transparent=yes
> 
> Then run stunnel:
> 
>     $ stunnel stunnel.conf
> 
> Then run netcat:
> 
>     $ nc localhost 8080
>     GET / HTTP/1.0
>     ...
> 




More information about the Tipz mailing list