트러블슈팅(Trouble Shooting)

curl: (60) server certificate verification failed. curl 에러 해결하기

토끼C 2023. 6. 30. 20:40
반응형

curl: (60) server certificate verification failed. curl 에러 해결하기

 

curl을 이용하여 rvm을 설치하는 도중 다음과 같은 에러가 발생했다.

root@LYJ:/# curl -sSL https://get.rvm.io | bash -s stable
curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

 

 

에러의 원인은 인증서 key의 문제로 다음 명령어 사용으로 curl을 사용할 수 있다.

 

curl -k -sSL [<https://get.rvm.io>](<https://get.rvm.io/>) | bash -s stable --ruby

 

-k option을 사용하면 성공적으로 curl을 통한 rvm설치가 성공한 것을 볼 수 있다.

root@LYJ:/# curl -k -sSL <https://get.rvm.io> | bash -s stable --ruby
Downloading <https://github.com/rvm/rvm/archive/1.29.12.tar.gz>
Downloading <https://github.com/rvm/rvm/releases/download/1.29.12/1.29.12.tar.gz.asc>
gpg: Signature made 2021년 01월 15일 (금)  using RSA key ID 39499BDB
gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 7D2B AF1C F37B 13E2 069D  6956 105B D0E7 3949 9BDB
GPG verified '/usr/local/rvm/archives/rvm-1.29.12.tgz'
Creating group 'rvm'
Installing RVM to /usr/local/rvm/
Installation of RVM in /usr/local/rvm/ is almost complete:
</piotr.kuczynski@gmail.com>

 

 

감사합니다~

반응형