Jump to content

SSL error when loading files on demand (certificate verify failed)


Recommended Posts

Posted

Hi everybody!

I'm using the on-demand file downloading feature as shown here: https://processwire.com/blog/posts/pw-3.0.137/#on-demand-mirroring-of-remote-web-server-files-to-your-dev-environment

Unfortunately I'm getting the following error in one of my projects:

Quote

File could not be downloaded (https://.../site/assets/files/.../....jpg) 2: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed, 2: fsockopen(): Failed to enable crypto, 2: fsockopen(): unable to connect to ssl://...:443 (Unknown error) (tried: curl, fopen, socket)

The certificate seems to be valid from what I can see in the browser. I have no idea what I could do or how I could debug that ? 

Any ideas? Thx in advance!

Posted

Download works for me, too.

Just in case: Have you checked that you have the correct time on your localhost? That might prevent the cert to validate.

  • Like 1
Posted

It works for me on windows too.

(The image file is a PNG with file ending jpg, but the download succeeds without any issue.) 

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...