ColdFusion-Stripe-CFC
ColdFusion-Stripe-CFC copied to clipboard
TLS 1.0 Requests - ColdFusion 10+
ColdFusion comes with java 1.7... which does 1.0 TLS cfhttp calls... when you use that it throws this error:
401 Unauthorized
{ "error": { "type": "invalid_request_error", "message": "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." } }
Solution:
- Upgrade to Java 8.
- Login to ColdFusion Administrator > Java JVM
- Change the path of the JVM to the new installed path (defaults to: C:\Program Files\Java\jre1.8.0_102 in windows. )
- Restart ColdFusion Server - Service.
- Re-Test.. it should work now..
Just thought I'd suggest this as a fix in case anyone was running into the same problem.
Pablo Varando www.easycfm.com
Hi Pablo Varando,
Thanks for your information. It is helped me. thanks again
FYI. If get an Error code 2 when starting the ColdFusion Application Service, you need to copy msvcr100.dll from {JDK Home}\jre\bin to {ColdFusion-Home}\runtime\bin.