LoginSignup
2
1

More than 5 years have passed since last update.

Javaで自己署名証明書を許可する方法

Last updated at Posted at 2015-12-02

Jenkins氏でSCMポーリングしようとしたら

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

とか言い出して出来ず。

調べてみるとキーストアに自己署名証明書を突っ込んで上げる必要があるらしい。

$ keytool -importcert -keystore cacerts -alias aws-stash -trustcacerts -file stash.crt

パスワードを聞かれたがそんなん設定した覚え無い・・・と思っていたらdefaultで"changeit"になっているらしい。

changeitで認証が通り無事、追加完了。

2
1
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
2
1