Authenticated SSL communication between two rails apps

Hi,

I've been gooogling around for quite some time now and I didn't find a
solution. If I missed it, feel free to RTFM me (with a link,
please) :wink:

I want to make two rails apps (on different servers) able to
communicate securely through SSL.
Meaning, when app1 needs data from app2, it connects to app2, checks
its certificate, and requests an URL. App2 then check app1's
certificate, and responds if it checks out.

Any idea how I could do this ?

http://apidock.com/rails/ActiveResource/Base

Scroll down to the ā€œCertificate Authenticationā€ section.

Best regards

Peter De Berdt

Damn ! How could I miss this ? Thank you very much.