Nap now with TLS client certificate support
I just pushed version 0.4 of the Nap gem. For those who don’t know: Nap is a really simple ReST API. It’s basically just a small wrapper around Ruby’s net/http.
New in this version is support for TLS client certificates, this means you can use certificates to authenticate with a server:
response = REST.get('https://example.com/pigeons/1',
{ 'Accept' => 'application/json' },
{ :tls_key_and_certificate_file => '/Users/Manfred/example.pem' }
)
response.body #=> {"pigeon":{"id":1}}
At Fingertips we design and develop Web, iPhone, iPad and Mac OS X apps.
Find out how to hire us…




Coming soon
Subscribe to our mailing list — Follow us on Twitter — Grab our feed — Fork our code on GitHub