1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Add some more examples of SSL option usage.

This commit is contained in:
Andy Brody 2015-06-10 01:33:05 -07:00
parent 40eddc184a
commit 218bf10656

View file

@ -74,6 +74,10 @@ helpers are just thin wrappers around RestClient::Request.execute.
RestClient::Request.execute(method: :get, url: 'http://example.com/resource',
timeout: 10)
RestClient::Request.execute(method: :get, url: 'http://example.com/resource',
ssl_ca_file: 'myca.pem',
ssl_ciphers: 'AESGCM:!aNULL')
You can also use this to pass a payload for HTTP verbs like DELETE, where the
RestClient.delete helper doesn't accept a payload.
@ -332,7 +336,15 @@ extract and set headers for them as needed:
)
# ...response body
== SSL Client Certificates
== SSL/TLS support
Various options are supported for configuring rest-client's TLS settings. By
default, rest-client will verify certificates using the system's CA store on
all platforms. (This is intended to be similar to how browsers behave.) You can
specify an :ssl_ca_file, :ssl_ca_path, or :ssl_cert_store to customize the
certificate authorities accepted.
=== SSL Client Certificates
RestClient::Resource.new(
'https://example.com',