Fixing Issue #6301 

Added private var $certPath to store the user root cert

Move logic to determite the path to the constructor

Add curl options to use the certificate to avoid certificate errors with self-signed certicates in the downdload/upload method so we don't get blank files