尝试使用 IBM WAS 6.1 为公共流连接 Twitter 流 API 时出现错误。
Caused by: javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: No trusted certificate found
at com.ibm.jsse2.n.a(n.java:28)
..............
Caused by: com.ibm.jsse2.util.h: No trusted certificate found
at com.ibm.jsse2.util.g.a(g.java:24)
以下设置用于连接公共流 API
ConfigurationBuilder cb = new ConfigurationBuilder();
cb.setDebugEnabled(true)
.setOAuthConsumerKey("kAhViQqgEGR0cdx7VCtKQ")
.setOAuthConsumerSecret("5S3FodQaLv79v8hflczXuCR1btyafRcp3UVRccOYg")
.setOAuthAccessToken("1444743066-dIsA9jRZYw3fRfO5oysYv9A3VNkqUafT7iYkhV6")
.setOAuthAccessTokenSecret("xuoqLYYGE71Qe56XKYJCnh4s1u5bSoyO4RJRmOjHH4")
.setPrettyDebugEnabled(true)
.setDebugEnabled(true)
.setUserStreamRepliesAllEnabled(true)