Closed timkelty closed 3 years ago
Thank you for your question. In order for this issue tracker to be effective, it should only contain bug reports and feature requests.
We advise you to use our community driven resources:
If you are confident that there is a bug in the framework, feel free to provide information on how to reproduce it. This issue will be closed for now.
This is an automated comment, triggered by adding the label question
.
Configure your PHP properly:
php.ini
, openssl.cafile="/path/to/cacert.pem"
.Thanks @samdark, I'll give it a try!
FWIW, it looks like Heroku just made this change recently, so it will likely become relevant to anyone running Yii/Craft on Heroku Redis.
Hi @timkelty. Did you manage to find a solution to that problem in Heroku?
@SerotoninaAbad Ended up going with the dumb/easy solution: ditch Heroku Redis and use their "Redis To Go" add-on, which doesn't require tls.
Configure your PHP properly:
- Download https://curl.haxx.se/ca/cacert.pem
- Specify path to the file in
php.ini
,openssl.cafile="/path/to/cacert.pem"
.- Restart PHP.
@dzuelke is this something that needs to be done in the buildpack?
Can this be worked around now that https://github.com/yiisoft/yii2-redis/pull/227 is released?
Got bitten by this one today too, and can't use @timkelty's solution.. has anyone else managed to get a connection working to Heroku Redis?
Got it working by using this in the config:
'useSSL' => true,
'contextOptions' => [
'ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
],
],
As I previously said, https://github.com/yiisoft/yii2-redis/issues/224#issuecomment-780703158 should be done instead of turning off peer verification.
@samdark that is only if you have control over the php installation
Guys, it's 2021... Change your provider. Anyway, this should be continued at forum if at all.
Production plans of Heroku Redis now require a TLS connection: https://devcenter.heroku.com/articles/heroku-redis#create-a-new-instance
However, enabling via
useSSL => true
does not work with these Redis instances.What steps will reproduce the problem?
useSSL => true
What's expected?
Connection should work.
What do you get instead?
Additional info