I was getting this error when starting jenkins with the berth server on jdk 8.
To resolve the issue, follow these steps:
Step 1:
Open URL https://updates.jenkins.io/ in a browser
Step 2:
To export an intermediate certificate:
Internet Explorer โ Tools โ Internet Options โ Content โ Certificates โ Go to the Trusted Root Certification Authorities tab and find out the DST Root CA X3 certificate. Then export the certificate: Choose "Certificate" โ "Export" โ DER-encoded binary format โ Save save the certificate as jenkins.cer (for me it was saved in C: \ jenkins \ jenkins.cer
(From Firefox โ Tools โ Options โ Advanced โ Encryption โ View certificates)
Step 3: create a keystore named cacertskeystore
JAVA_HOME \ bin \ keytool -keystore C: \ jenkins \ cacertskeystore -genkey -alias cacerts
Step 4:
Add jenkins.cer to cacertskeystore using the following command
JAVA_HOME \ bin \ keytool -import -trustcacerts -Keystore C: \ jenkins \ cacertskeystore -alias jenkins -file C: \ jenkins \ jenkins.cer
Step 5: Start the berth server using the command below JAVA_HOME \ bin \ java -DJENKINS_HOME = C: / jenkins / home -Djavax.net.ssl.trustStore = C: / jenkins / cacertskeystore -Djavax.net.ssl.trustStorePassword = password- provided-while-creation-keystore -jar jenkins.war --httpPort = 8080 - httpListenAddress = localhost
Sharad gaikwad
source share