Amazon S3 self signed certificate: 60: Peer's certificate issuer has been marked as not trusted by the user

Steps to reproduce

  1. Administration
    2.Storage
    3.Add amazon S3 storage

Expected behaviour

Connection happens successfully.

Actual behaviour

Error 60 curl certificate not trusted.

Server configuration

Operating system: Centos 7

Web server: Apache2

Database: SQLite

**PHP version:**7.2

ownCloud version: (see ownCloud admin page)10.0.8

Updated from an older ownCloud or fresh install: fresh install

Where did you install ownCloud from: https://download.owncloud.org/

Are you using external storage, if yes which one: local/smb/sftp/…
Amazon S3
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
no

Client configuration

**Browser:**Chrome 67

Operating system: Windows

What I did:

  • put ‘enable_certificate_management’ => true,’ and upload the certificate from the interface (my certificate is working i tested it with curl and curl in php)
  • append my certificate at the end of: sources/config/ca-bundle.crt
  • put my certificate in ca.info in my php.ini

All of that results always in the same error: 60: Peer's certificate issuer has been marked as not trusted by the user.

My amazon S3 is a local instance with self signed certificates.

Any idea ?

We’ll likely need logs to verify the problem is in the S3 library that ownCloud uses for the connection. If this is the case, you’ll likely need to put the certificates wherever the library needs