Java ApacheNIFI与Youtube数据API

Java ApacheNIFI与Youtube数据API,java,ssl,youtube,apache-nifi,truststore,Java,Ssl,Youtube,Apache Nifi,Truststore,我使用了youtube api URL *****&textFormat=plainText&part=snippet&videoId=XhtNooh2gws&maxResults=50 使用Nifi GetHttp处理器,还可以将SSL上下文服务设置为StandardSSLContextService。但是在运行处理器时,它给了我以下错误 javax.net.SSL.peerRunVerifiedException主机名googleapis.com是否与对等方提供的证书主题匹配 我已经在我的机

我使用了youtube api URL

*****&textFormat=plainText&part=snippet&videoId=XhtNooh2gws&maxResults=50

使用Nifi GetHttp处理器,还可以将SSL上下文服务设置为StandardSSLContextService。但是在运行处理器时,它给了我以下错误

javax.net.SSL.peerRunVerifiedException主机名googleapis.com是否与对等方提供的证书主题匹配

我已经在我的机器中设置了Java Truststore,并在Nifi中为StandardSSLContextService提供了如下CACERTS路径


/usr/java/jdk1.8.0_60/jre/lib/security/cacerts.

似乎与

制造了一个问题