Java SSL code throwing NoSuchAlgorithException

前端 未结 3 980
独厮守ぢ
独厮守ぢ 2021-02-09 10:31

I\'m working on a project that I want to add SSL to, so I created a simple client/server test implementation to see if it worked and I get a NoSuchAlgorithmException. The follo

3条回答
  •  广开言路
    2021-02-09 11:09

    See http://docs.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#SupportClasses for examples, and for the names of the supported algorithm. It seems that "SunX509" and "NewSunX509" are the algorithms supported by KeyManagerFactory. And the protocol is named TLS, not TSL.

提交回复
热议问题