Thread:Extension talk:VisualEditor/Parsoid SSL error

I have a problem with parsoid running on an Ubuntu 14.04 LTS Apache 2.2 PHP 5.5.

When clicking "Edit" on a page, I get the error parsoidserver-http-cjurl-error: Unknown SSL protocl error in connection :8142 My configuration - It is an https only host, that means that I have configured my apache2.conf this way:

'' Options Indexes FollowSymLink AllowOverride None Require all granted

 AuthPAM_Enabled on AuthPAM_FallThrough off   AuthBasicProvider external AuthExternal pwauth  ''

my ports.conf this way:

''Listen 80

 Listen 443 https ''

and my sites-available/ssl.conf this way:

''  SSLEngine on SSLCertificateFile /etc/ssl/certs/apache.crt SSLCertificateKeyFile /etc/ssl/private/apache.key SSLRequireSSL  AddExternalAuth pwauth /usr/sbin/pwauth SetExternalAuthMethod pwauth pipe  DocumentRoot /var/www 

Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains" ''

Here is the history of how I setup visualeditor: So I setup mediawiki 1.24 stable in /var/www/mediawiki, I copied VisualEditor from here http://www.mediawiki.org/wiki/Special:ExtensionDistributor/VisualEditor and added my LocalSettings.php, at the bottom I added

''require_once "$IP/extensions/UniversalLanguageSelector/UniversalLanguageSelector.php"; require_once "$IP/extensions/VisualEditor/VisualEditor.php"; // Enable by default for everybody $wgDefaultUserOptions['visualeditor-enable'] = 1; // Don't allow users to disable it $wgHiddenPrefs[] = 'visualeditor-enable'; // OPTIONAL: Enable VisualEditor's experimental code features
 * 1) $wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;''

Then I setup parsoid. I added the rquired line to m sources.list and installed with apt-get install parsoid. At /etc/mediawiki/parsoid/settings.js, i added

parsoidConfig.setInterwiki( 'localhost', 'https://:443/mediawiki/api.php' );

and at the bottom of LocalSettings.php, It doesnt matter if I try:

$wgVisualEditorParsoidURL = 'http://localhost:8142';

or

$wgVisualEditorParsoidURL = 'http://:8142';

I even forwarded Port 8142 in my Router, still doesnt work.

I restarted parsoid via service parsoid restart.

The command lsof -i:8142 shows

COMMAND  PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME nodejs 12273 parsoid   14u  IPv4  71435      0t0  TCP *:8142 (LISTEN) nodejs 12275 parsoid   11u  IPv4  71435      0t0  TCP *:8142 (LISTEN) nodejs 12276 parsoid   11u  IPv4  71435      0t0  TCP *:8142 (LISTEN) nodejs 12278 parsoid   11u  IPv4  71435      0t0  TCP *:8142 (LISTEN) nodejs 12279 parsoid   11u  IPv4  71435      0t0  TCP *:8142 (LISTEN)

The command curl https://:443/mediawiki/api.php shows:

curl: (51) SSL: certificate subject name 'Ubuntu' does not match target host name '<FQDN>'

That's strange, because Ubuntu is the standard-hostname of the machine after installation, but I edited the hostname of the machine matching it's FQDN-Hostname-Part and set the FQDN as ServerName in apache2.conf. I approved that the hostname is changed via cat /etc/hostname and by pinging it. I even regenerated the apache.key/apache.crt pair to make sure that the FQDN is set at generation time of the certificate.

Any suggestions?