Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion libcloud/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
# macports: curl-ca-bundle
'/opt/local/share/curl/curl-ca-bundle.crt',

# homebrew: curl-ca-bundle
# homebrew: openssl
'/usr/local/etc/openssl/cert.pem',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Libcloud tries the paths in the way they are defined and the first bundle which is found is used.

It seems like /usr/local/etc/openssl/cert.pem is preferred since it's generated from a key chain, but we should probably still keep path to curl-ca-bundle path there for backward compatibility reasons (not all users might have installed openssl formula, etc.).

We can simply decrease the priority of curl-ca-bundle and move it after the openssl bundle path.


# homebrew: curl-ca-bundle (backward compatibility)
'/usr/local/opt/curl-ca-bundle/share/ca-bundle.crt',
]

Expand Down