리눅스 상에서 Jenkins 설치 repository를 갱신 하기 위해 apt update를 했을경우
Err:2 https://pkg.jenkins.io/debian-stable binary/ Release
Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: ***.***.***.***]
위와 같은 에러 발생
-> 리눅스에서 https://pkg.jenkins.io/debian-stable 이 https url을 신뢰하지 못함 <— 인증기관을 알지못함
해결 방법
인증기관 목록을 갱신해줘야 함
Ubuntu ::
apt install ca-certificates 설치
update-ca-certificates - update /etc/ssl/certs and ca-certificates.crt 갱신
CentOs :
yum install -y ca-certificates 설치
update-ca-trust force-enable 갱신
sudo ln -s /etc/ssl/your-cert.pem /etc/pki/ca-trust/source/anchors/your-cert.pem
update-ca-trust