Jump to content

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


bernhard
 Share

Recommended Posts

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!

Link to comment
Share on other sites

11 minutes ago, bernhard said:

Can anybody try if downloading https://www.baumrock.com/site/assets/files/1192/mockup_mustangs.800x0.png via WireHttp works on their end please?

$http = new WireHttp();
$http->download('https://www.baumrock.com/site/assets/files/1192/mockup_mustangs.800x0.png', __DIR__ . '/tmp.jpg');

A2yrr23.png

Works for me

mockup_mustangs.800x0.png

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

@bernhard It might be something to do with your server's root certificate. Have a look at https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/

You can check if your root cert has expired or not by checking it here https://www.ssllabs.com/ssltest/

Update: I just ran your domain name and it looks like your DST root cert expired (per Let's Encrypt article above)

 

CleanShot 2021-10-16 at 11.57.48.png

  • Like 3
Link to comment
Share on other sites

  • 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
 Share

  • Recently Browsing   0 members

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