java - 从 translation.googleapis.com 收到的证书链
问题描述
我想在我的 Java Web App 中使用 Google Translation API。我已经从https://translation.googleapis.com/$discovery/rest?version=v3
cacerts.jks 导入了证书,但它不起作用。我正在使用 Weblogic 12c,我的 Java 版本是 jdk1.8.0_221
这是服务器日志:
Certificate chain received from translation.googleapis.com -
172.217.6.138 failed hostname verification check.
Certificate contained *.storage.googleapis.com but
check expected translation.googleapis.com
Hostname verification failed:
HostnameVerifier=weblogic.security.utils.SSLWLSHostnameVerifier,
hostname=translation.googleapis.com.
解决方案
推荐阅读
- python - 带有 entry_point 控制台脚本的 Python 包分发
- html - Vue js 无法从嵌套的 v-for 拼接项目
- javascript - 获取与发布之间的区别
- python-3.x - 每当有提示时,如何限制每次调用文本提示验证器委托?
- c# - 无法在后面的代码中访问列表框中的按钮
- html - CSS Flexbox 和响应式 - 非常经典的文章布局 - 可以在没有 JS 或 DOM 摆弄的情况下完成?
- python - 在python中对三个数据集的直方图进行归一化
- xslt - 使用 xslt 创建具有固定值和动态属性的新元素
- javascript - 如何在单个href标签中传递2个链接
- java - 如何正确安装mongodb java驱动?