Advertisement
devinteske

Poor persons encrypted chat server

Aug 30th, 2015
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. A response to the following:
  2. https://twitter.com/nixcraft/status/637885429010706432
  3.  
  4. Wherein it was suggested:
  5. Poor mans chat server
  6. Box1$ nc -lp 4242
  7. Box2$ nc box1 4242
  8. Now start typing on either machine. #unix #linux #OSX #freebsd
  9.  
  10. My answer: (too long for a tweet)
  11. Poor [persons] *encrypted* chat server
  12. Box1$ openssl req -nodes -new -x509 -batch -out server.pem -keyout server.pem && openssl s_server -accept 4242
  13. Box2$ openssl s_client -host box1 -port 4242
  14. Now start typing on either machine. #unix #linux #OSX #freebsd
  15.  
  16. Here's a script to make it easier:
  17. http://pastebin.com/X5fFWLdE
  18. Poor [persons] *encrypted* chat server
  19. Box1$ stalk -s
  20. Box2$ stalk box1
  21. Now start typing on either machine. #unix #Linux #OSX #freebsd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement