SSL HandShake exception

后端 未结 11 1094
自闭症患者
自闭症患者 2020-12-09 05:08

I use SSL connection to connect web client to server. It works without any problem for a long time. But from yesterday it gives following error can anyone tell me the reason

11条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-09 05:16

    I have spent more than 12 hours on this issue. After creating a self-signed certificate it is required to export that certificate to the cacert file. In my case it was located in /usr/lib/java/jre/lib/security/cacert. You can export the certificate by using the keytool (you probably have to have root access):

    $ sudo keytool -exportcert -alias keyStoreAlias -keystore \
           keyStoreKeys.keys -file /usr/local/java/jre/lib/security/cacerts
    

提交回复
热议问题