Nap now with TLS client certificate support

Manfred Stienstra

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('',
  { 'Accept' => 'application/json' },
  { :tls_key_and_certificate_file => '/Users/Manfred/example.pem' }
response.body #=> {"pigeon":{"id":1}}

You’re reading an archived weblog post that was originally published on our website.