SSL Java java.io.IOException: Invalid keystore format

后端 未结 5 860
忘掉有多难
忘掉有多难 2020-12-15 23:08

I am testing SSL in java with SSLServerSocket and other classes in the java.ssl package. When I run the following code, I get the exception java.io.IOException: Invalid keys

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-16 00:12

    Your file is invalid. You have to import a JKS keystore file and not a txt one. You have to use the keytool to create your keystore file and then import this file.

提交回复
热议问题