satanas / Turpial

Twitter client written in Python. Light, fast, fully functional and integrated to the user desktop
http://turpial.org.ve
GNU General Public License v3.0
175 stars 47 forks source link

Support to cert file provided by Fedora #323

Closed Richzendy closed 10 years ago

Richzendy commented 10 years ago

Since the first build of libturpial on Fedora, i added a patch to use a cert file provided by Fedora instead the cert file provided by the libturpial sources (is a guideline), in the last versión of libturpial (1.7.0) this is my patch:

--- libturpial-1.7.0.orig/libturpial/lib/http.py        2014-04-07 20:37:59.000000000 -0430
+++ libturpial-1.7.0/libturpial/lib/http.py     2014-05-01 12:55:15.794318557 -0430
@@ -72,6 +72,7 @@
             self.ca_certs_file = os.path.realpath(os.path.join(basedir,
                                                   '..', 'certs',
                                                   'cacert.pem'))
+            self.ca_certs_file = '/etc/pki/tls/certs/ca-bundle.crt'

     def __validate_ssl_cert(self, request):
         req = request.split('://')[1]

Must be great if libturpial can do search to a cert file over differents paths and if the cert file provided by libturpial can't be found them search in others paths for example /etc/pki/tls/certs/ca-bundle.crt, if it can be done, them my patch is not necesary anymore.

Richzendy commented 10 years ago

I will close this ticket because is not a issue to turpial, is a issue to libturpial, sorry