15
11

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.

PKIX path building failed:javaにSSL証明書を追加する

Posted at

SSLサーバとのREST通信に失敗し、エラーメッセージが出ていた。

com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target`

title=javaでSSL接続をすると、PKI PATHの構築に失敗となる
相手ホストを信頼済みのリストに登録すればよい模様。
InstallCert.javaがリンク切れになってたので探すとgithubにあった。
InstallCert
JavaにSSL証明書を追加する
keytoolを使ってcacertsに証明書を追加すればよい。
InstallCertのREADMEが一番わかりやすかった。

15
11
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
15
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?