c or linux

인증서(certificate) curl을 이용해서 다운받기

'김용환' 2014. 3. 11. 18:14

웹 서버 인증서보기 


$ openssl s_client -connect 1.1.1.1:8000 -showcerts </dev/null 2>/dev/null|openssl x509 -outform PEM




웹 서버 인증서 저장하기


$ openssl s_client -connect 1.1.1.1:8000 -showcerts </dev/null 2>/dev/null|openssl x509 -outform PEM > www.google.com.perm