차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
| tls_ssl [2020/12/19 06:57] – [참고문서] koov | tls_ssl [2023/02/07 01:49] (현재) – koov | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== TLS/SSL ====== | ====== TLS/SSL ====== | ||
| + | * [[Let' | ||
| + | * [[curl 명령어로 인증서 정보 확인]] | ||
| + | |||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| - | ===== Let's Encrypt | + | * [[https:// |
| - | * https://certbot.eff.org/docs/using.html Certbot Manual | + | * [[https://rsec.kr/?p=242|디피 헬만 키 (Diffie-Hellman Key)]] |
| + | * [[https://wiki.mozilla.org/Security/ | ||
| + | * [[https:// | ||
| - | * [[Let' | + | ===== 암호화 종류 ===== |
| - | * [[HAProxy SSL 설정]] | + | ==== 대칭키 |
| - | * [[Let' | + | |
| - | ==== certbot 사용시 선택할 플러그인 | + | * '' |
| - | '' | + | * '' |
| + | * '' | ||
| - | | + | ==== 공개키 ==== |
| - | * '' | + | |
| + | * '' | ||
| + | * '' | ||
| - | '' | + | ==== 해시 ==== |
| - | '' | + | * '' |
| + | | ||
| + | | ||
| + | * '' | ||
| + | ===== 공개키 인증서 형식 ===== | ||
| + | {{:: | ||
| + | |||
| + | https:// | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | ==== 인증서 포멧 변경 ==== | ||
| + | <WRAP prewrap> | ||
| + | <code bash> | ||
| + | openssl x509 -in cert.crt -outform der -out cert.der | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== 인증서 생성 ===== | ||
| + | |||
| + | ==== CA 인증서 생성 ==== | ||
| + | <WRAP prewrap> | ||
| + | <code bash> | ||
| + | # key 생성 | ||
| + | openssl genrsa -out ca.key 4096 | ||
| + | # 인증서 생성 | ||
| + | openssl req -x509 -new -nodes -sha512 -days 3650 \ | ||
| + | -key ca.key \ | ||
| + | -out ca.crt | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ==== 서버 인증서 생성 ==== | ||
| + | <WRAP prewrap> | ||
| + | <code bash> | ||
| + | # key 생성 | ||
| + | openssl genrsa -out ia.key 4096 | ||
| + | |||
| + | # CSR(인증요청서) 생성 | ||
| + | openssl req -sha512 -new \ | ||
| + | -key ia.key \ | ||
| + | -out ia.csr | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ==== CSR(인증요청서) 서명 ==== | ||
| + | |||
| + | <WRAP prewrap> | ||
| + | <code bash> | ||
| + | # 인증요청서 서명 | ||
| + | cat > v3.ext << | ||
| + | authorityKeyIdentifier=keyid, | ||
| + | basicConstraints=CA: | ||
| + | keyUsage = digitalSignature, | ||
| + | extendedKeyUsage = serverAuth | ||
| + | subjectAltName = @alt_names | ||
| + | |||
| + | [alt_names] | ||
| + | DNS.1=yourdomain.com | ||
| + | DNS.2=yourdomain | ||
| + | DNS.3=hostname | ||
| + | EOF | ||
| + | |||
| + | openssl x509 -req -sha512 -days 3650 \ | ||
| + | -extfile v3.ext \ | ||
| + | -CA ca.crt -CAkey ca.key -CAcreateserial \ | ||
| + | -in ia.csr \ | ||
| + | -out ia.crt | ||
| + | </ | ||
| + | </ | ||
| ===== 디피-헬만 파라미터(dhparam) 키 는 무엇인가? | ===== 디피-헬만 파라미터(dhparam) 키 는 무엇인가? | ||
| 줄 42: | 줄 120: | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| - | |||
| - | ===== 참고문서 ===== | ||
| - | |||