使用 .key 、.ca 和 .cert 檔案為 tomcat 建立 jks

使用 .key 、.ca 和 .cert 檔案為 tomcat 建立 jks

我有三個 Verisign 提供的檔案sample.cert、sample.CA、sample.key。我需要為 tomcat 建立密鑰庫。正如我搜尋的那樣,我無法直接使用 .key 檔案來建立金鑰庫。

我使用的命令如下:

 pkcs12 -export -in sample.cert -inkey sample.key  -CAfile sample.crt -out sample.p12

(我將sample.CA更改為sample.crt。)

我使用 openssl 來建立sample.p12 檔案。然後我使用 keytool 將sample.p12 導入sample.jsk。

    keytool -importkeystore -srckeystore sample.p12 -destkeystore sample.jks -srcstoretype pkcs12     

當我驗證證書時,它顯示Intermediate certificate chaining issue

任何想法?

相關內容