I'm running an AppEngine on Java 1.7, using the Spring framework. I need to do request to the Stripe API , which requires TLSv1.2 when doing a request. This works fine when deploying the application to the Google environment, but it refuses to use this protocol when running the server locally. It gives the following error:
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.
I'm using IntelliJ, AppEngine SDK version 1.9.42 in combination with Maven. I've tried adding build options in multiple places (-Ddeployment.security.TLSv1.2=true -Dhttps.protocols=TLSv1.2), in the IntelliJ Run/Debug configuration, in the XML JVM flags, in the dev_appserver.py file, but none of them worked. How can I enable TLSv1.2 in my Java 7 local development server, and talk to the Stripe API?