
Solve the Jenkins 'unable to find valid certification path' error
Solve the Jenkins 'unable to find valid certification path' error
I put together a little tutorial for fixing the SunCertPathBuilderException people often run into when installing Jenkins plugins. It’s actually an easy fix, just change the URL of the update site not to use SSL. Check out the article over on TheServerSide.
https://www.theserverside.com/blog/Co…
Content
1.19 -> hey I'm Cameron Mackenzie I'm the
3.75 -> editor-in-chief over at the server-side
5.22 -> comm and I wanted to talk to you about
7.74 -> fixing this annoying son cert
10.05 -> pathbuilder
11.219 -> exception that you run into when you're
13.71 -> using Jenkins and trying to install a
15.69 -> new plugin now if you go to the manage
19.17 -> Jenkins page you'll see the link for
21.689 -> managing plugins that's where you go if
23.58 -> you want to install a new plug-in and I
26.01 -> find that if you've just done a new
27.51 -> installation of Jenkins on certain
29.31 -> machines you end up getting that son sir
31.769 -> exception and here's how I'll trigger it
34.53 -> first I'll click on manage plugins and
36.71 -> then on the manage plugins page I'm
39.03 -> going to scroll down and you'll see the
40.77 -> button to check now for new plugins I
43.68 -> then click that and all of a sudden I
46.559 -> get this
47.01 -> oops message and it says hey you've got
49.59 -> a problem here stacktrace
52.55 -> son cert path builder exception and the
56.43 -> question is how do I fix that and so the
59.699 -> fix is to go back into the Jenkins admin
63 -> console click on manage Jenkins and then
68.34 -> when you manage Jenkins you'll have the
70.2 -> option to manage plugins and then just
72.6 -> go on to the Advanced tab and you'll see
74.28 -> down there it says here's the URL for
76.89 -> the update site HTTPS update Jenkins io
80.189 -> updates enter Jenkins Jenkins all you
83.369 -> have to do is actually get rid of that s
85.439 -> and so by getting rid of that s now
88.65 -> you're not going to use secure socket
90.479 -> layer and you're no longer going to have
92.97 -> a problem with SSL connections and that
95.67 -> Sun cert exception is going to go away
98.72 -> so a good idea is click Submit there
101.99 -> save it and then click check now and as
105.57 -> soon as you click check now all of those
107.729 -> amazing plugins will load
Source: https://www.youtube.com/watch?v=1YQds3jnfl8