I know how to connect to my owncloud with python, by using easywebdav.
I'm using a selfsigned certificate and verify_ssl=False
, but that makes me vulnerable to man-in-the-middle attacks, the only reason to use ssl in the first place.
I'm using Fedora and tried adding my servers certificate to $HOME/.pki/CA/cacert.pem
, but it still fails.
You already have your server certificate in
$HOME/.pki/CA/cacert.pem
. But to be complete for others, you can get a certificate with python like this:Then to use it in easywebdav. Easywebdav builds on requests. And the
verify_ssl
is used asrequests.Session.verify
Requests docs say it accepts a boolean (True uses the default chain) or a path to a CA_BUNDLE.So this should work: