-
Notifications
You must be signed in to change notification settings - Fork 27
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
SSL handshake fails on OS X 10.11.2 (certificate verify failed) #54
Comments
Update here: Mediawiker uses Package Control's SSL implementation, so it would seem that problem lies there (most likely, PC can't get certs from the Keychain). @tosher, can you confirm my suspicions? Also, I get this problem both on OS X 10.10.5 and 10.11.2. |
Yes, the plugin depends on ssl from package control.
or only with Mediawiker? |
Mediawiker only, and only with our corporate wiki. It seems that Package Control doesn't trust our custom certificate despite I have added it to the Mac's Keychain and to ca-bundle. |
I'm forgot about one thing, the plugin depends on PC's _ssl library loader only, and for Linux platform. If you know some public sites (based on mediawiki engine) with the same problem, tell me please :) It will be useful for testing. |
I don't know such wikis but I can test a beta on our wiki. :] Just tell me the branch hash. |
For self signed certificate we can disable verification of cert: after the string self.connection = requests.Session() add line self.connection.verify = False If this changes will help, i'll can to add this option to the plugin. |
Sure, I'll test it next morning (around 11:00 UTC+4). |
Tested, everything works (had to restart Sublime). As far as I can tell, the new line disables cert verification altogether. I would suggest to do this only for self-signed certs (e. g. those that are stored in Thanks, anyway! |
I'll make it as param in server settings with default value as True (verification is On). |
That will be nice. Thank you. |
Please, try the new version: 3.0.2 "My wiki":
{
"host": "en.wikisite.com",
"https": true,
"is_ssl_cert_verify": false,
...
} |
Oops, something went wrong.
|
Restart required https://github.com/tosher/Mediawiker/blob/master/mwclient/client.py def __init__(self, host, path='/w/', ext='.php', pool=None, retry_timeout=30,
max_retries=25, wait_callback=lambda *x: None, clients_useragent=None,
max_lag=3, compress=True, force_login=True, do_init=True, httpauth=None, do_ssl_cert_verify=True): Parameter exists. |
Oops, my bad. :) Thanks for your fix! 👍 |
Ок! Thanx for help with testing :) |
I'm using Mediawiker with a corporate wiki on the latest El Capitan release.
Whenever I try to open a page, I get an error:
Now that I've done my homework, I've found that similar bug plagues Package Control, and the solution is to add custom certificate to Package Control.user-ca-bundle. That didn't help though.
Is there some other way to add custom certificate to Mediawiker?
The text was updated successfully, but these errors were encountered: