1
在嘗試導入證書,我得到它不能因爲在這種情況下,別名(Tomcat)的導入錯誤已經存在的keytool無法導入證書
$ keytool -import -v -alias tomcat -file tomcat.crt -keystore ../keystore -storepass changeit
keytool error: java.lang.Exception: Certificate not imported, alias <tomcat> already exists
java.lang.Exception: Certificate not imported, alias <tomcat> already exists
at sun.security.tools.keytool.Main.addTrustedCert(Main.java:2644)
at sun.security.tools.keytool.Main.doCommands(Main.java:1006)
at sun.security.tools.keytool.Main.run(Main.java:340)
at sun.security.tools.keytool.Main.main(Main.java:333)
pvaddepa.wb10d1.koala> (/web/home/wb10d1/companyCA)
當我試圖找到別名我並不覺得 -
pvaddepa.wb10d1.koala> (/web/home/wb10d1/companyCA)
$ keytool -list -storepass changeit
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 1 entry
companycaroot, Feb 27, 2016, trustedCertEntry,
Certificate fingerprint (SHA1): 44:6C:91:DF:F9:D6:C4:D2:F6:74:0C:5E:7E:25:2B:61:A8:EF:97:A4
我已經提到了similar question on SO,但即使刪除後的結果不會改變。
你的問題是否解決了答案?或者是另一回事?謝謝 –
@RicardNàcherRoig是的,這確實解決了我的問題 – Phalgun
注意到,投票,接受 – Phalgun