Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update documentation to reflect how to properly use a PKCS#12 key

  • Loading branch information...
commit 4a74ca350841dfd4d068ab4c03de7082abdfff79 1 parent 6072482
Andrew Coleman authored March 19, 2012

Showing 1 changed file with 9 additions and 0 deletions. Show diff stats Hide diff stats

  1. 9  README.md
9  README.md
Source Rendered
@@ -17,6 +17,15 @@ The client can be initialized without SSL info, but it will most likely be neces
17 17
       :ssl_ca_file     => "ca_certificate.pem",
18 18
     })
19 19
 
  20
+The client can also use a PKCS#12 format key:
  21
+
  22
+    certificate = OpenSSL::PKCS12.new(File.read("somekey.p12"), "passphrase, if any")
  23
+    client = Ability::Client.new("SomeUser", "SomePassword", {
  24
+      :ssl_client_cert => certificate.certificate,
  25
+      :ssl_client_key  => certificate.key,
  26
+      :ssl_ca_file     => certificate.ca_certs
  27
+    })
  28
+
20 29
 Most API calls like `eligibility_inquiry` will require a `service_id`. Query for service ids to get one:
21 30
 
22 31
     client.services

0 notes on commit 4a74ca3

Please sign in to comment.
Something went wrong with that request. Please try again.