Java keytool easy way to add server cert from url/port

前端 未结 5 1962
攒了一身酷
攒了一身酷 2020-11-27 11:24

I have a server with a self signed certificate, but also requires client side cert authentication. I am having a rough time trying to get the raw CA server cert so I can imp

5条回答
  •  感动是毒
    2020-11-27 12:01

    There were a few ways I found to do this:

    • Firefox: Add Exception -> Get Certificat -> View -> Details -> Export...
    • KeyMan (http://www.alphaworks.ibm.com/tech/keyman) You can get SSL cert directly from the File -> Import menu
    • InstallCert (Code by Andreas Sterbenz)
        java InstallCert [host]:[port] 
        keytool -exportcert -keystore jssecacerts -storepass changeit -file output.cert
        keytool -importcert -keystore [DESTINATION_KEYSTORE] -file output.cert
    

提交回复
热议问题