【问题标题】:Apache Nifi with Youtube Data API带有 Youtube 数据 API 的 Apache Nifi
【发布时间】:2017-05-22 12:32:31
【问题描述】:

我使用了 youtube api URL

https://www.googleapis.com/youtube/v3/commentThreads?key=*****&textFormat=plainText&part=sn-p&videoId=XhtNooh2gws&maxResults=50

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

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

我已经在我的机器中设置了 Java 信任库,并将 CACERTS 的路径如下提供给 Nifi 中的 StandardSSLContextService

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

【问题讨论】:

    标签: java ssl youtube apache-nifi truststore


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2015-09-14
    • 2018-06-30
    • 1970-01-01
    • 2017-04-04
    • 1970-01-01
    • 2021-04-13
    • 2016-11-17
    • 2022-08-05
    相关资源
    最近更新 更多