https://bugzilla.wikimedia.org/show_bug.cgi?id=70761

            Bug ID: 70761
           Summary: Require SSL certificates to be valid; don not allow to
                    use your own certificate
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to