Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dascorp's avatar
Level 26

Stripe initiate HTTPS connections with TLS 1.2

I have one app running on L5.2, for some reason on Laravel Valet I am getting Stripe no longer supports API requests made with TLS 1.0. Please initiate HTTPS connections with TLS 1.2 or later. You can learn more about this at https://stripe.com/blog/upgrading-tls.,

Same app on docker or on forge works well. I also checked fresh install of L5.4 with stripe on Valet and have no problem. So I am bit confused.

Cashier/Stripe-Php dependencies throw this laravel/cashier v6.0.18 requires stripe/stripe-php ~3.0 -> satisfiable by stripe/stripe-php[v3.0.0, v3.1.0, v3.10.0, v3.10.1, v3.11.0, v3.12.0, v3.12.1, v3.13.0, v3.14.0, v3.14.1, v3.14.2, v3.14.3, v3.15.0, v3.16.0, v3.17.0, v3.17.1, v3.18.0, v3.19.0, v3.2.0, v3.20.0, v3.21.0, v3.22.0, v3.23.0, v3.3.0, v3.4.0, v3.5.0, v3.6.0, v3.7.0, v3.7.1, v3.8.0, v3.9.0, v3.9.1, v3.9.2] but these conflict with your requirements or minimum-stability.

  • I have stripe-php 3.23.0 on all environments so it meets stripe requirements indicated on Stripe Pages
  • openssl version -a returns OpenSSL 1.0.2l 25 May 2017 on Valet and OpenSSL 1.0.2g 1 Mar 2016 on forge
  • Valet is running on OS Sierra 10.12.6 (16G29)

Do you have idea what may be the case here.

0 likes
10 replies
tptompkins's avatar

Hi Dascorp -

Did you ever get this issue figured out? I'm running into the exact same problem and would love to find a fix for this. Thanks!

Tommy

Cronix's avatar

What SSL protocols and ciphers do you have enabled in your nginx/apache config for the site? This most likely is at the server level.

#ssl_protocols               TLSv1 TLSv1.1 TLSv1.2;
ssl_protocols TLSv1.2;
Cronix's avatar

I'm sorry but I don't use valet, so I'm not sure whether it's using nginx or apache, or where it installs the web server or where their config files would be.

Edit: try looking here: /usr/local/etc/nginx/

I was just looking at issues on laravel/valet repo.

tptompkins's avatar

If anyone else is curious, the fix for this was to upgrade from OSX Sierra (10.12.6) to OSX High Sierra (10.13.3). I was trying to avoid upgrading OSX since it affects my Parallels installation, but I think it's impossible to upgrade OpenSSL in Sierra without updating the OS. After upgrading the OS, my Laravel 5.2 install talks to Stripe just fine when using Valet.

Cronix's avatar

That's why I use homestead. You can do what you want to the VM and not mess with your main OS.

dascorp's avatar
Level 26

@tptompkins I think it is related to cashier which for 5.2 pulls version 6 and its released old stripe-php dependency. Forgive me but i substituted the latest stripe-php manually and without high sierra installation it works again on valet.

1 like
tptompkins's avatar

Thanks for the update @dascorp. That's interesting to me because I wasn't able to make any TLS 1.2 connections work from my terminal which is completely outside of Laravel / PHP until I upgraded the OS. After I upgraded the OS, it worked from terminal as well as when using Valet.

dascorp's avatar
Level 26

@tptompkins in my case it was not OS related as other apps 5.3 > 5.5 worked with no problem. Only 5.2 dependencies were causing the glitch.

Please or to participate in this conversation.