tls: failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")

2025. 2. 1. 10:15·🔹Debug
목차
  1. (x509 인증서 오류)
728x90
SMALL

아래와 같은 에러가 나온다면

 

E0131 01:39:11.217309   49814 memcache.go:265] couldn't get current server API group list: Get "https://192.168.98.159:6443/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")
E0131 01:39:11.220185   49814 memcache.go:265] couldn't get current server API group list: Get "https://192.168.98.159:6443/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")
E0131 01:39:11.222927   49814 memcache.go:265] couldn't get current server API group list: Get "https://192.168.98.159:6443/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")
E0131 01:39:11.225854   49814 memcache.go:265] couldn't get current server API group list: Get "https://192.168.98.159:6443/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")
E0131 01:39:11.228570   49814 memcache.go:265] couldn't get current server API group list: Get "https://192.168.98.159:6443/api?timeout=32s": tls: failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")
Unable to connect to the server: tls: failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")

 

아래 명령어를 쓰자

 

unset KUBECONFIG
export KUBECONFIG=/etc/kubernetes/admin.conf
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

 


(x509 인증서 오류)

이 에러는 Kubernetes API 서버의 TLS 인증서가 신뢰되지 않기 때문에 발생한다.
즉, 사내에서 운영하는 Kubernetes의 인증서가 공식적으로 서명되지 않았거나, 자체 서명된 인증서(Self-Signed Certificate)를 사용하고 있기 때문이다.

LIST

'🔹Debug' 카테고리의 다른 글

[ERROR CRI]: container runtime is not running:  (0) 2025.02.18
  1. (x509 인증서 오류)
'🔹Debug' 카테고리의 다른 글
  • [ERROR CRI]: container runtime is not running:
terranbin
terranbin
Studying Computer Science
  • terranbin
    Engineer
    terranbin
  • 전체
    오늘
    어제
    • 분류 전체보기 (129)
      • ☁️Cloud (42)
        • AWS (38)
        • MS Azure (4)
      • 🐳 Infra (1)
        • System (12)
        • DRBD (3)
      • 🔌Network (8)
      • 🔹Storage (8)
      • 🔹Kubernetes (15)
      • 🔹 DevOps (8)
      • 🔹Study (4)
      • 🔹Install (6)
      • 🔹ETC (2)
      • 🔹PostMan (6)
      • 🔹Openstack (3)
      • 🔹RcloneView (6)
      • 🔹Test (0)
      • 🔹Debug (2)
      • 🔹DBMS (2)
  • 블로그 메뉴

    • 홈
  • 링크

    • sungbin
    • Github
  • 공지사항

  • 인기 글

  • 태그

    aws dlt
    postman
    rocky9
    network
    terraform
    OpenStack
    설치
    AWS
    rcloneview
    EC2
    Google Drive
    kubernetes
    centos7
    distributed load testing
    SAA
    rocky8
    ceph
    EBS
    S3
    kubectl
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
terranbin
tls: failed to verify certificate: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes")

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.