3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

linuxのストアに証明書を登録 ~javaでSSL接続をするとPKI PATHの構築に失敗する~

Last updated at Posted at 2015-06-16

javaのプログラムで証明書をしっかりと登録しておかないと下記のようなエラーが出る

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

ググれば出てくる話だが備忘のため

①対象のサイトから証明書DL
②任意のフォルダに配置
③下記コマンド実行
keytool -import -alias enetune -keystore [証明書ストアパス] -file [証明書パス]
④確認方法
keytool -v -list -keystore [証明書ストアパス]

参考 http://www.melange.co.jp/blog/?p=2345
http://d.hatena.ne.jp/uunfo/20110813/1313242092

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?