Yum install Peer certificate cannot be authenticated with given CA certificates

게시 날짜: 12 Mar 2014
마지막 수정 날짜: 08 Jun 2022

문제

Tableau Desktop에서 Tableau Server에 연결할 때 다음 오류가 발생할 수 있습니다.

Cannot connect to Tableau Server. Please check the server name and port and try again.
Internet communication error: Peer certificate cannot be authenticated with given CA certificates (<server name>).
 

브라우저에서 Tableau Server에 로그인하면 로그인이 성공합니다.

환경

  • Tableau Desktop 
  • Tableau Server 
  • SSL

해결 방법

CA(인증 기관) 서명 인증서

Windows의 Tableau Desktop


1단계

현지 IT 팀과 협력하여 필요한 모든 루트 CA와 중간 체인 인증서가 설치되어 있는지 확인합니다. 
다음 단계에 따라 루트 CA 및 기타 체인 인증서를 설치합니다.

  1. Tableau Desktop을 실행하는 컴퓨터에 인증서 파일(.crt)을 복사합니다. 
  2. 인증서 파일을 두 번 클릭하고 인증서 설치를 클릭한 후 다음을 클릭합니다.
  3. 모든 인증서를 다음 저장소에 저장을 선택하고 찾아보기를 클릭한 다음 신뢰할 수 있는 루트 인증 기관을 선택하고 확인, 다음, 마침을 차례로 클릭합니다.
  4. 인증서 가져오기를 허용한 후 확인을 클릭합니다. 

2단계

Windows 인증서 저장소에서 Tableau Server CA의 인증서가 중복되지 않는지 확인합니다. 
이러한 인증서 중 일부가 실제 Tableau Server 인증서와 일치하지 않을 수 있으며 이로 인해 오류가 발생합니다.

  1. 시작 메뉴를 열고 certmgr을 입력하여 컴퓨터 인증서 관리를 엽니다.
  2. 신뢰할 수 있는 루트 인증 기관 > 인증서로 이동합니다.
  3. 이 위치에 Tableau Server에 대한 중복 인증서가 있는 경우 각 인증서를 열고 자세히 탭에서 일련 번호를 확인합니다.
  4. 일련 번호가 올바른 Tableau Server 인증서와 일치하지 않는 모든 Tableau Server 인증서를 삭제합니다.
  5. 중간 인증 기관 > 인증서의 모든 중복 Tableau Server 인증서에 대해 3단계와 4단계를 수행합니다.
  6. Tableau Desktop을 다시 시작하고 연결을 다시 시도합니다.


Mac의 Tableau Desktop

IT 팀의 도움을 받아 전체 SSL 인증서 체인을 Tableau Server 구성에 추가합니다. 자세한 내용은 Tableau 도움말에서 SSL을 참조하십시오. 이 경우 SSL 구성 섹션의 6단계에서 SSL 인증서 체인 파일은 선택 사항이 아니라 필수입니다.

또한 컴퓨터의 키 체인에 루트 인증서를 추가하여 컴퓨터에서 해당 인증 기관을 신뢰하게 만들 수 있습니다.

자체 서명 인증서

Windows의 Tableau Desktop


자체 서명 인증서를 사용할 경우 Tableau Desktop을 사용할 모든 클라이언트 컴퓨터에 해당 인증서를 설치해야 합니다. 다음 단계에 따라 자체 서명 Tableau Server 인증서를 설치합니다.
  1. Tableau Desktop을 실행하는 컴퓨터에 인증서 파일(.crt)을 복사합니다. 
  2. 인증서 파일을 두 번 클릭하고 인증서 설치를 클릭한 후 다음을 클릭합니다.
  3. 모든 인증서를 다음 저장소에 저장을 선택하고 찾아보기를 클릭한 다음 신뢰할 수 있는 루트 인증 기관을 선택하고 확인, 다음, 마침을 차례로 클릭합니다.
  4. 인증서 가져오기를 허용한 후 확인을 클릭합니다. 


Mac의 Tableau Desktop

자체 서명 인증서를 사용할 경우 Tableau Desktop을 사용할 모든 클라이언트 컴퓨터에 해당 인증서를 설치해야 합니다. 자체 서명 Tableau Server 인증서를 컴퓨터의 키 체인에 추가합니다. 자세한 내용은 다음 Apple 지원 문서를 참조하십시오. macOS High Sierra: 키체인에 인증서 추가하기

원인

이 오류는 libcurl 오류 코드 60에 해당하며, 일반적으로 CA 인증서나 기타 다른 필수 인증서가 인증서 체인에서 누락되었음을 나타냅니다.

추가 정보

  • libcurl-errors

Question: Hi, I was trying to install python-pip via yum. However, the command ended up with a ‘CURL error: SSL certificate problem: CA certificate key too weak’. Following is the complete error message. Can someone help me out with this? – Yashikha.

# yum install python-pip Extra Packages for Enterprise Linux 8 - x86_64 0.0 B/s | 0 B 00:07 Errors during downloading metadata for repository 'epel': - Curl error (60): Peer certificate cannot be authenticated with given CA certificates for //mirrors.fedoraproject.org/metalink?repo=epel-8&arch=x86_64&infra=genclo&content=centos [SSL certificate problem: CA certificate key too weak] Error: Failed to download metadata for repo 'epel': Cannot prepare internal mirrorlist: Curl error (60): Peer certificate cannot be authenticated with given CA certificates for //mirrors.fedoraproject.org/metalink?repo=epel-8&arch=x86_64&infra=genclo&content=centos [SSL certificate problem: CA certificate key too weak]

Solution: How to fix cURL Error: SSL certificate problem: CA certificate key too weak

Before we start discussing the problem, you may want to read this article that covers the system-wide cryptographic policies in CentOS.

Getting back to the error, it seems like the operating system has the cryptographic subsystems set to FUTURE which is expected to deny access to websites that use weak certificates. Hence, the cURL command failed to authenticate the peer certificates of the repo URLs.

Well, the workaround is to set the system-wide crypto policies to DEFAULT or find another repo that complies with the strong security policies.

Find the current crypto policy in CentOS

# update-crypto-policies --show FUTURE

You can update the crypto policy as shown below:

# update-crypto-policies --set DEFAULT Setting system policy to DEFAULT Note: System-wide crypto policies are applied on application start-up. It is recommended to restart the system for the change of policies to fully take place.

You will have to restart the system for the change of policy to take place. Now, go ahead and install the package, and hopefully, it should work.

How do I fix peer certificate Cannot be authenticated with given CA certificates?

It can be caused by the fact that the certificate is self-signed. To avoid the error, disable the verification from the GitHub side by clicking the Disable SSL verification button for the corresponding webhook.

How do I add a certificate to ETC PKI TLS certs CA bundle CRT?

Linux (CentOs 6).
Install the ca-certificates package: yum install ca-certificates..
Enable the dynamic CA configuration feature: update-ca-trust force-enable..
Add it as a new file to /etc/pki/ca-trust/source/anchors/: cp foo.crt /etc/pki/ca-trust/source/anchors/.
Use command: update-ca-trust extract..

How do you fix Peer's certificate issuer has been marked as not trusted by the user?

You can do this in two ways..
Set SSL Verify to false only for specific repo: git config http.sslVerify false..
Set SSL Verify to false Globally: git config --global http.sslVerify false..

How do I fix curl Error 60?

Solution:.
Save the cacert. pem file anywhere on your system. Example: Since you're modifying both php. ... .
Open your php.ini file. If your php.ini file doesn't have the curl.cainfo line, just add it to the end of the file, then add the file path where you saved your cacert.pem file: ... .
Restart your server..

Toplist

Neuester Beitrag

Stichworte