YUMSERV
Published 2022. 8. 19. 08:17
SSL 인증서 관련 내용 정리 LINUX/WEB
반응형

* 필요한 내용은 계속 추가할 예정입니다.

1. 인증서 타입별 매칭 확인법

생성한 CSR, KEY와 발급 받은 인증서(CRT)의 쌍이 맞는지 확인하는 방법

[CSR]
openssl req -in test_co_kr.csr -modulus -noout | openssl md5

[KEY]
openssl rsa -in test_co_kr.key -modulus -noout | openssl md5

[CRT]
openssl x509 -in test_co_kr.crt -modulus -noout | openssl md5

같은 MD5 값을 가질 경우 한쌍(사용가능)

 

 

2. crt, key 인증서 파일 pem으로 변환

# key 변경
openssl rsa -in server.key -text > private.pem
# crt 변경
openssl x509 -inform PEM -in server.crt > public.pem

 

3. SSL 인증서 적용되었는지 확인 사이트

https://www.ssllabs.com/ssltest/

 

SSL Server Test (Powered by Qualys SSL Labs)

SSL Server Test This free online service performs a deep analysis of the configuration of any SSL web server on the public Internet. Please note that the information you submit here is used only to provide you the service. We don't use the domain names or

www.ssllabs.com

 

4. 중간 체인인증서 적용 시

cat SectionRSADomainValidationSecureServerCA.crt USERTrustRSAAAACA.crt >> domain_com_chained.crt
반응형
profile

YUMSERV

@lena04301

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!