创建SSLContext对象,并使用我们指定的信任管理器初始化 出错

SSLContext sslContext = SSLContext.getInstance("SSL", "SunJSSE");
报错:
java.security.NoSuchProviderException: no such provider: SunJSSE
at sun.security.jca.GetInstance.getService(GetInstance.java:140)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:269)
at javax.net.ssl.SSLContext.getInstance(SSLContext.java:5)

运行环境 tomcat6,jdk1.6

查看全部
woyidinghuiying
woyidinghuiying
2015/08/17 01:12
  • 微信
  • ssl
  • 点赞
  • 收藏
  • 回答
    私信

1个回复