首页 > 解决方案 > 从 translation.googleapis.com 收到的证书链

问题描述

我想在我的 Java Web App 中使用 Google Translation API。我已经从https://translation.googleapis.com/$discovery/rest?version=v3cacerts.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.

标签: javagoogle-cloud-platformcertificateweblogic12cgoogle-translation-api

解决方案


推荐阅读