Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to cert file provided by Fedora #111

Open
Richzendy opened this issue May 1, 2014 · 0 comments
Open

Support to cert file provided by Fedora #111

Richzendy opened this issue May 1, 2014 · 0 comments

Comments

@Richzendy
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant