Linux/RedHat

Red Hat - Curl error (91)

bong2. 2025. 1. 24. 08:47
[root@localhost ~]# yum list --showduplicates kernel
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)                                                                                                                                                     0.0  B/s |   0  B     00:00
Errors during downloading metadata for repository 'rhel-8-for-x86_64-appstream-rpms':
  - Curl error (91): SSL server certificate status verification FAILED for https://cdn.redhat.com/content/dist/rhel8/8.7/x86_64/appstream/os/repodata/repomd.xml [OCSP response has expired]
Error: Failed to download metadata for repo 'rhel-8-for-x86_64-appstream-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

 

레드햇 리눅스 사용 중 위와 같이 91 에러가 발생한다면 서버 시간이 원인일 가능성이 높다.

아래 명령어르 수행하여 서버 시간 변경 후 위 명령어를 다시 시도해보자

[root@localhost ~]# date -s "$현재 시간으로 변경"