cURL/SSL error when upgrading from 9.1.1 to 9.1.2 #26906

dassencio opened this Issue Jan 7, 2017 · 4 comments


None yet

3 participants

dassencio commented Jan 7, 2017 edited

Steps to reproduce

  1. Go to the Admin area
  2. Click on "Open updater"

Expected behaviour

The update process starts.

Actual behaviour

The following is shown on the screen:

cURL error 51: SSL: no alternative certificate subject name matches target host name 'localhost'

Server configuration

Operating system: Ubuntu/Linux

Web server:

Database: MySQL

PHP version: 5.6 and 7.0 (problem occurred with both versions)

ownCloud version: 9.1.1

Updated from an older ownCloud or fresh install: updated from 9.1

Where did you install ownCloud from: installed at web host

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
paste the results here.

Integrity checker has been disabled. Integrity cannot be verified.

List of activated apps:
Default encryption module 1.3.0
Deleted files 0.9.0
First run wizard 1.1
Gallery 15.0.0
Mail Template Editor 0.1
Notifications 0.3.0
PDF Viewer 0.8.1
Share Files 0.10.0
Text Editor 2.1
Update notification 0.2.1
Video player 0.9.8
Calendar 1.4.1
Contacts 1.5.1
Audio Player 1.4.0

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder

(not possible)

The content of config/config.php:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder


Insert your config.php content here
(Without the database password, passwordsalt and secret)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Client configuration

Firefox / Chromium

Operating system:


Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

@dassencio are you using SSL with a valid certificate ?

Seems the updater app is using "localhost" with HTTPS for which the cert is likely not verifiable.

@VicDeo any input on this ?

dassencio commented Jan 10, 2017 edited

@PVince81 : the certificate is valid and signed by Let's Encrypt. I've tried it both on Firefox and Chromium; both browsers accept it without a warning and recognize that it has been issued and verified by Let's Encrypt.

Also, the "Common Name (CN)" field is correctly set to the URL of the ownCloud instance I'm running -- and no, this URL is not localhost ;-)

VicDeo commented Jan 10, 2017

@PVince81 Just the same with owncloud/updater#414 (comment)
$_SERVER['SERVER_NAME'] set - it will fallback to localhost


@VicDeo so is this something that needs to be documented to make sure it's not missing in the setup ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment