Author: vichak
Description:
The error when you use self signed certificate is the following :
Page Fetch failure for "https://myhost/api.php": Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE
DoesNotExistError: Page Fetch failure for "https://myhost/api.php": Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE
at ApiRequest._requestCB (/usr/lib/parsoid/src/lib/mediawiki.ApiRequest.js:153:15)
at self.callback (/usr/lib/parsoid/node_modules/request/request.js:121:22)
at Request.emit (events.js:95:17)
at ClientRequest.self.clientErrorHandler (/usr/lib/parsoid/node_modules/request/request.js:230:10)
at ClientRequest.emit (events.js:95:17)
at CleartextStream.socketErrorListener (http.js:1547:9)
at CleartextStream.emit (events.js:95:17)
at SecurePair.<anonymous> (tls.js:1386:19)
at SecurePair.emit (events.js:92:17)
at SecurePair.maybeInitFinished (tls.js:979:10)
I push a code review on https://gerrit.wikimedia.org/r/#/c/159811/2
But this not working...
It need to offer the strictSSL option of request module. I found this option on https://github.com/mikeal/request
I hardcoded strictSSL to false in my production server...
I wanted to share this.
Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=64003