gt 0 java,强制TLS> 1.0在Java中的AppEngine本地开发服务器上

we need to connect to an external service using at least TLS 1.1, which doesn't work on the local development server using the Java SDK v. 1.9.32. Is there a way to force the local dev server to use a specific version of TLS? Or is it just not supported in the Java SDK?

解决方案

Adding to the above answer, since TLS 1.1 and 1.2 are disabled by default on JDK 7, if you don't want to use JDK 8 you can also try modifying the last line of dev_appserver.sh with the following flags:

exec "${RUN_JAVA}" "${SCRIPT_NAME}" \

-Ddeployment.security.TLSv1.1=true -Ddeployment.security.TLSv1.2=true -ea -cp "${JAR_FILE}" \

com.google.appengine.tools.KickStart \

com.google.appengine.tools.development.DevAppServerMain "$@"

Or dev_appserver.cmd on Windows:

java -Ddeployment.security.TLSv1.1=true -Ddeployment.security.TLSv1.2=true -cp "%~dp0\..\lib\appengine-tools-api.jar" ^

com.google.appengine.tools.KickStart ^

com.google.appengine.tools.development.DevAppServerMain %*

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值