728x90
반응형
서론
학교나 회사 등에서 인증서 문제로 certification verification failed 오류가 발생하면...
빡친다.
해결 방법
결국 인증서가 없어서 그런 것이니, 인증서를 직접 생성하여 등록해주면 된다.
인증서 생성
openssl s_client -connect 사이트의주소:443 | tee cert_file
인증서 추가
cat cert_file >> /etc/ssl/certs/ca-certificates.crt
빡침 해결!
한 줄 알았는데 또 안되는 케이스가 있었음...
빡빡침.
아래와 같이 해결함
openssl s_client -connect 사이트주소:443 -showcerts </dev/null 2>/dev/null | awk '/BEGIN CERTIFICATE/,/END CERTIFICATE/ {print $0; if (/END CERTIFICATE/) print ""; }' > 적절한이름.crt
sudo cp 적절한이름.crt /usr/local/share/ca-certificates
sudo update-ca-certificates --fresh
빡빡침 해결!
728x90
반응형
'Tips & theory' 카테고리의 다른 글
arm 동적 디버깅 (0) | 2025.05.01 |
---|---|
team T4B pwnable 기초 - library (0) | 2024.01.02 |
team T4B pwnable 기초 - mitigation (0) | 2024.01.02 |
team T4B pwnable 기초 - format string bug (0) | 2024.01.02 |
team T4B pwnable 기초 - return oriented programming (0) | 2024.01.02 |