Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.x has problems with new Let's Encrypt cert due to expire or root cert #15987

Closed
1 of 3 tasks
gemal opened this issue Oct 1, 2021 · 2 comments
Closed
1 of 3 tasks

Comments

@gemal
Copy link
Contributor

gemal commented Oct 1, 2021

This is a (multiple allowed):

  • bug

  • enhancement

  • feature-discussion (RFC)

  • CakePHP Version: 2.10.24

  • Platform and Target: cli

What you did

due to the old cert expiring:
https://scotthelme.co.uk/lets-encrypt-old-root-expiration/

use HttpSocket

try to get https://dmarcian.com

ERROR: Exception getting https://dmarcian.com/: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
stream_socket_client(): Failed to enable crypto
stream_socket_client(): unable to connect to ssl://dmarcian.com:443 (Unknown error)

What happened

EXPLAIN WHAT IS ACTUALLY HAPPENING, HERE.

What you expected to happen

can be fixed by downloading latest cacert.pem file from here:
https://curl.se/docs/caextract.html
and replacing
lib\Cake\Config\cacert.pem

@domstubbs
Copy link

domstubbs commented Oct 1, 2021

I’m seeing this issue too. Updating the root certs does fix the problem – thanks.

Edit: For anyone that wants a clean fix, download the latest cacert.pem linked above and add it to your app/Config directory. Then update any HttpSocket calls as follows:

$HttpSocket = new HttpSocket([
  'ssl_cafile' => CONFIG . 'cacert.pem'
]);

@ADmad
Copy link
Member

ADmad commented Oct 1, 2021

Cake 2.x has reached EOL and won't be receiving any updates.

Users need to update or specify the path to an up to date certificate file themselves.

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

No branches or pull requests

4 participants