(1) 검증하지 않는 않는 옵션(-k) 사용
curl -k {URL}
(2) 인증서를 발급한 기관을 신뢰하는 인증기관 목록에 추가
$ sudo mkdir /usr/local/share/ca-certificates/{기관명}
$ openssl s_client -connect {URL}:443 |tee certlog
$ openssl x509 -inform PEM -in certlog -text -out certdata
$ openssl x509 -inform PEM -text -in certdata
$ sudo cat certdata >> /usr/local/share/ca-certificates/{기관명}/ca-bundle.crt
$ sudo update-ca-certificates
curl 에 신뢰하는 인증기관 인증서(CA Cert) 추가하기 (lesstif.com)
curl 에 신뢰하는 인증기관 인증서(CA Cert) 추가하기
Ubuntu 는 /etc/ssl/certs/ca-certificates.crt 또는 /etc/ssl/certs 디렉터리에서 CA 목록 로딩
www.lesstif.com
https 연결시 서버의 SSL 인증서 추출하기 (curl 또는 web browser 사용) (lesstif.com)
https 연결시 서버의 SSL 인증서 추출하기 (curl 또는 web browser 사용)
www.lesstif.com
How to install certificates for command line - Ask Ubuntu
How to install certificates for command line
So in school we need to install a certificate to access https sites. In firefox, I can import the certificate. However, I can't do so with the command line. For example, running git push I get: fa...
askubuntu.com
'운영체제 > Linux' 카테고리의 다른 글
Ubuntu 16.04 Server에 Desktop GUI 설치 (0) | 2020.12.30 |
---|---|
Ubuntu에서 apt repository 변경 (0) | 2020.11.11 |
Port-forwarding via iptables in Linux (0) | 2020.11.10 |
Enable/Disable CPU Cores (0) | 2019.05.02 |
동시에 여러 서버에게 ping 요청하기 (Broadcast ping) (0) | 2019.04.14 |