Nap now with TLS client certificate support

Manfred Stienstra, 03 Jun 2010, 14:22 in tools, web, and ruby (edit).

I just pushed version 0.4 of the Nap gem. For those who don’t know: Nap is a really simple ReST API, basically 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}}

No comments yet