【Https】keytool 導入證書到 本地 Exception: Input not an X.509 certificate

在這裏插入圖片描述

1.背景

首先參考這篇文章:【Spring】Spring Boot 支持 Https

根據這篇文章生成了這個文件,然後根絕這個文件想導入到java環境中。之所以想導入是因爲報錯了這個【Http】PKIX(PKIX path building failed) 問題 unable to find valid certification path to requested target
k開始以爲是證書的原因。

[rootel security]# ../../../bin/keytool - import -alias tomcathttpa -keystore 1cc file javaboy.pl2
Enter keystore password:
Re-enter new password:
keytool error: java.lang.Exception: Input not an .509 certificate

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章