openssl chat

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

openssl chat

S Mathias
i can use "natively" openssl for anonymous chat:

# Chat:
# server side:
openssl req -x509 -nodes -days 365 -newkey rsa:8192 -keyout mycert.pem -out mycert.pem

# server side - generate a self-signed cert.
openssl s_server -accept 52310 -cert mycert.pem

# client side - "127.0.0.1" is the IP of the server
openssl s_client -connect 127.0.0.1:52310


1) but how can i set it to require username/password? it would be a great chat tool
2) how can i transfer files with openssl? [again: with username/password?]

thank you for any ideas :\

p.s.: or it will be a firewall rule, to restrict to ip addresses in a list? those, who are only allowed to connect..

Reply | Threaded
Open this post in threaded view
|

Re: openssl chat

Ted Unangst-2
On Sun, Dec 12, 2010 at 11:47 AM, S Mathias <[hidden email]> wrote:

> i can use "natively" openssl for anonymous chat:
>
> # Chat:
> # server side:
> openssl req -x509 -nodes -days 365 -newkey rsa:8192 -keyout mycert.pem -out mycert.pem
>
> # server side - generate a self-signed cert.
> openssl s_server -accept 52310 -cert mycert.pem
>
> # client side - "127.0.0.1" is the IP of the server
> openssl s_client -connect 127.0.0.1:52310
>
>
> 1) but how can i set it to require username/password? it would be a great chat tool
> 2) how can i transfer files with openssl? [again: with username/password?]

you write some code or use a different existing program designed for
the purpose.

Reply | Threaded
Open this post in threaded view
|

Re: openssl chat

Alexander Hall-3
In reply to this post by S Mathias
On 12/12/10 17:47, S Mathias wrote:

> i can use "natively" openssl for anonymous chat:
>
> # Chat:
> # server side:
> openssl req -x509 -nodes -days 365 -newkey rsa:8192 -keyout mycert.pem -out mycert.pem
>
> # server side - generate a self-signed cert.
> openssl s_server -accept 52310 -cert mycert.pem
>
> # client side - "127.0.0.1" is the IP of the server
> openssl s_client -connect 127.0.0.1:52310
>
>
> 1) but how can i set it to require username/password? it would be a great chat tool
> 2) how can i transfer files with openssl? [again: with username/password?]

By using ssh and friends (scp, sftp) instead?

Reply | Threaded
Open this post in threaded view
|

Re: openssl chat

LeviaComm Networks NOC
 > i can use "natively" openssl for anonymous chat:

 > 1) but how can i set it to require username/password? it would be a
great chat tool
 > 2) how can i transfer files with openssl? [again: with
username/password?]

Not sure what you are wanting...  Anonymous and requiring a username /
password are mutually exclusive.

If you want chat, just use IRC, there should be a Server in Packages.
If you are concerned about security, just grab one with ssl support.