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