aboutsummaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-07-31 09:11:06 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-07-31 09:11:06 +0300
commit38fc774af945ddeb08f609b8a72594a80699b2b2 (patch)
tree162d55011924612e973be1ae0f8fdba1cfa6218b /README.rst
parent5c6b195718765b2e5c9eaee183a59b44fd09533b (diff)
downloadpy-gsxws-38fc774af945ddeb08f609b8a72594a80699b2b2.tar.gz
py-gsxws-38fc774af945ddeb08f609b8a72594a80699b2b2.tar.bz2
py-gsxws-38fc774af945ddeb08f609b8a72594a80699b2b2.zip
Added SSH cert support
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst22
1 files changed, 17 insertions, 5 deletions
diff --git a/README.rst b/README.rst
index d45c8d5..65beb57 100644
--- a/README.rst
+++ b/README.rst
@@ -13,9 +13,8 @@ Requirements
************
- Python 2.7 or later
-- lxml
-- PyYAML
-- A valid Apple ID with access to GSX Web Services.
+- contents of requirements.pip
+- GSX client certs and valid Apple ID with access to GSX Web Services
Installation::
@@ -33,13 +32,26 @@ Usage
It goes a little something like this::
# check warranty status
+ import os
import gsxws
- gsxws.connect(apple_id, password, sold_to)
+ os.environ['GSX_CERT'] = '/path/to/gsx/client/cert.pem'
+ os.environ['GSX_KEY'] = '/path/to/gsx/client/cert_private_key.pem'
+ gsxws.connect(apple_id, sold_to)
mac = gsxws.Product('70033CDFA4S')
mac.warranty()
# get available parts for this machine
mac.parts()
-
Check the tests-folder for more examples.
+
+
+***
+FAQ
+***
+
+Q: My script keeps prompting me for the private key passphrase - how could I automate this?
+A: One way would be to remove the passphrase from the key:
+
+ $ openssl rsa -in privatekey.pem -out privatekey.nopass.pem
+