If you are trying to connect TeamCity to Jira over SSL you
may get security exception. This happens because TeamCity doesn't know about Jira's certificate.
To fix this you just need to add Jira's certificate to the
%TeamCityHome%\jre\lib\security\cacerts
Problem:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Solution:
SET KEYTOOL=C:\TeamCity\jre\bin\keytool.exe
SET CACERTS=C:\TeamCity\jre\lib\security\cacerts
%KEYTOOL% -import -alias bla -file certificate.cer -keystore %CACERTS%
No comments:
Post a Comment