Certificate issue while installing Temurin-17
Sekharz opened this issue · 3 comments
Sekharz commented
Hi Team,
I followed the instructions here to install temurin-*-jdk(s)
in a debian:stable-slim
docker image and I have been getting the below error messages:
When using wget:
root@82f5dbc5e166:~# wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor | tee /etc/apt/trusted.gpg.d/adoptium.gpg > /dev/null
gpg: no valid OpenPGP data found.
And when using curl to save the gpg key it succeeds but when I go for a apt update
I get the below error:
root@82f5dbc5e166:~# apt update
Ign:1 https://packages.adoptium.net/artifactory/deb bookworm InRelease
Hit:2 http://deb.debian.org/debian stable InRelease
Ign:1 https://packages.adoptium.net/artifactory/deb bookworm InRelease
Hit:3 http://deb.debian.org/debian stable-updates InRelease
Hit:4 http://deb.debian.org/debian-security stable-security InRelease
Ign:1 https://packages.adoptium.net/artifactory/deb bookworm InRelease
Err:1 https://packages.adoptium.net/artifactory/deb bookworm InRelease
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 151.101.155.42 443]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch https://packages.adoptium.net/artifactory/deb/dists/bookworm/InRelease Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 151.101.155.42 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
And then when I get to apt install temurin-17-jdk
I get the below as expected.
root@82f5dbc5e166:~# apt install temurin-17-jdk
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package temurin-17-jdk
Any help on fixing the certificate issue?