Unable to install Jenkins Plugin after upgrading the jenkins version to 2.455

Java version used → 21

Below is the error

sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:148)
at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:129)
at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297)
at java

Please help me here for some insights

Hello @sachinTen, and welcome to this community. :wave:

The error message sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target typically means that the Java application is unable to establish a trusted connection to the target server because the server’s SSL/TLS certificate is not trusted.

This can happen if the server is using a self-signed certificate or a certificate issued by a Certificate Authority (CA) that is not included in Java’s default set of trusted CAs.

To resolve this issue, you need to add the server’s certificate to the Java keystore used by your Jenkins instance.

Here are the general steps:

  1. Export the server’s certificate to a file. This can usually be done using a web browser or the openssl command-line tool.
  2. Import the certificate into the Java keystore using the keytool command that comes with Java.

The command looks like this:
keytool -import -alias server-alias -keystore path/to/your/keystore.jks -file server-certificate.crt

Restart Jenkins so it picks up the changes to the keystore.