From: Robert Klemme Date: 2011-11-28T21:25:46+09:00 Subject: Re: Simplest way for secure, JSON-based client/server solution? On Sun, Nov 27, 2011 at 8:21 PM, Brian Candler wrote: > Robert Feldt wrote in post #1033780: >> Long time since I was actively involved in Ruby community so would >> like to get your up-to-date view of what would be the simplest way to >> support secure (ssh-encrypted typically) client/server communication >> via JSON between ruby scripts. I want to use encrypted JSON since some >> of the clients might later need to be implemented in other languages >> than Ruby and JSON is widespread. But other ideas/comments also >> appreciated. > > If you've already decided you want to use ssh to handle the encryption, I can't see that Robert has said this. He wants SSL but not necessarily SSH. > Many people just use JSON over HTTP/HTTPS - this is essentially the > RESTful approach. You GET a JSON object from a particular URL; or you > PUT or POST a JSON object to a URL, and get another JSON object in the > response. That would be HTTPS in this case. Without knowing more I'd first look into OpenSSL and JSON http://rubydoc.info/stdlib/openssl/1.9.3/frames http://rubydoc.info/stdlib/json/1.9.3/frames Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/