SSL인증서 주체 확인

SSL인증서 주체 확인

1 로컬[ | ]

openssl x509 -noout -subject -in 파일명
root@zetawiki:~# openssl x509 -noout -subject -in /tmp/example.pem 
subject= /CN=example.com

2 원격[ | ]

echo | openssl s_client -showcerts -connect 도메인:443 2>&1 | grep ^subject
root@zetawiki:~# echo | openssl s_client -showcerts -connect google.com:443 2>&1 | grep ^subject
subject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=*.google.com
root@zetawiki:~# echo | openssl s_client -showcerts -connect wikipedia.org:443 2>&1 | grep ^subject
subject=/C=US/ST=California/L=San Francisco/O=Wikimedia Foundation, Inc./CN=*.wikipedia.org
root@zetawiki:~# echo | openssl s_client -showcerts -connect fb.com:443 2>&1 | grep ^subject
subject=/C=US/ST=California/L=Menlo Park/O=Facebook, Inc./CN=*.facebook.com

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}