[Tipz] netcat and HTTPS

Ian Langworth bass at ccs.neu.edu
Tue Nov 9 13:53:09 EST 2004


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
    ...

-- 
Ian Langworth
Project Guerrilla
Northeastern University
College of Computer and Information Science



More information about the Tipz mailing list