Page MenuHomePhabricator

Parsoid: SSL peer certificate or SSH remote key was not OK
Closed, ResolvedPublic

Description

I'm using the new integrated Parsoid (PHP Version). When i try to access the VisualEditor i get the following error:

Error contacting the Parsoid/RESTBase server: (curl error: 60) SSL peer certificate or SSH remote key was not OK

I'm using a self signed certificate for the MediaWiki. I can't find an option in the documentation to disable the certificate check or define a different internal MediaWiki API url (e.g. http://localhost/w/api.php) for Parsoid like it was possible in the Javascript version.
Is there any way to get it to work?

MediaWiki Version: 1.35.1
PHP Version: 7.3.26
Web-Server: IIS 10 (Windows Server 2016)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
revi subscribed.

HTTPS is about HTTPS within Wikimedia sites. Removing.

I'm using a self signed certificate for the MediaWiki. I can't find an option in the documentation to disable the certificate check or define a different internal MediaWiki API url (e.g. http://localhost/w/api.php) for Parsoid like it was possible in the Javascript version.
Is there any way to get it to work?

The integrated Parsoid still uses the same configuration variables, try something like this:

$wgVirtualRestConfig['modules']['parsoid']['url'] = 'http://localhost/w/rest.php';
Nwa703 claimed this task.

Thanks a lot. That solved my problem.