瀏覽代碼

Merge pull request #73 from machristie/macos-python-certificate-docs

Document how to fix macOS/Python 3.6 certificate issue
Enis Afgan 8 年之前
父節點
當前提交
5d862c197f
共有 2 個文件被更改,包括 23 次插入0 次删除
  1. 22 0
      docs/topics/common_setup_issues.rst
  2. 1 0
      docs/topics/overview.rst

+ 22 - 0
docs/topics/common_setup_issues.rst

@@ -0,0 +1,22 @@
+Common Setup Issues
+===================
+
+macOS Issues
+------------
+
+* If you are getting an error message like so: ``Authentication with cloud provider failed: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)``
+  then this indicates that you are probably using a newer version of Python on
+  macOS. Starting with Python 3.6, the Python installer includes its own version
+  of OpenSSL and it no longer uses the system trusted certificate keychains.
+
+  Python 3.6 includes a script that can install a bundle of root certificates
+  from ``certifi``.  To install this bundle execute the following:
+
+  .. code-block:: bash
+
+    cd /Applications/Python\ 3.6/
+    sudo ./Install\ Certificates.command
+
+  For more information see `this StackOverflow
+  answer <https://stackoverflow.com/a/42583411/1419499>`_ and the `Python 3.6
+  Release Notes <https://www.python.org/downloads/release/python-360/>`_.

+ 1 - 0
docs/topics/overview.rst

@@ -12,4 +12,5 @@ Introductions to all the key parts of CloudBridge you'll need to know:
     Object states and lifecycles <object_lifecycles.rst>
     Paging and iteration <paging_and_iteration.rst>
     Using block storage <block_storage.rst>
+    Common setup issues <common_setup_issues.rst>