1. openssl 설치
- 다운로드 Link http://slproweb.com/products/Win32OpenSSL.html
- 환경변수 설정
2. pfx 파일 생성
- 준비물 : key file, Root 인증서, Chain 인증서, 사이트 인증서, 인증서 비밀번호
- 명령어 : openssl pkcs12 -export -out [생성파일 경로.pfx] -inkey [key file 경로] -in [사이트 인증서 경로] -certfile [Chain 인증서 경로] -certfile [Root 인증서 경로] -name [사이트 주소]
- 예 :
openssl pkcs12
-export -out C:\Users\gillilo\Desktop\test\test.pfx
-inkey C:\Users\gillilo\Desktop\test\test.com_key.pem
-in C:\Users\gillilo\Desktop\test\File_test.com_apache.crt
-certfile C:\Users\gillilo\Desktop\test\ChainFile_ChainBundle.crt
-certfile C:\Users\gillilo\Desktop\test\CA_GLOBALSIGN_ROOT_CA.crt
-name test.com
- 기타 : .keystore 파일이나 .pfx 파일을 받은경우 바로 업로드하여 사용하면 됨
3. .pfx 인증서 서버 업로드
4. 톰캣 server.xml 변경
<Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
keystoreFile=".pfx 인증서 경로" keystorePass=".pfx 인증서 비밀번호" keystoreType="PKCS12"
clientAuth="false" sslProtocol="TLS" />
- 기타 : .pfx 파일인 경우에만 keystoreType="PKCS12" 기입 .keystore 일때는 X
5. 톰캣 재시작
6. 인증서 확인
'기타' 카테고리의 다른 글
[Ubuntu] Apache James 3.7.0 설치 (0) | 2022.03.27 |
---|---|
DNS 레코드 종류 (0) | 2022.03.27 |
Docker 쌩초보 가이드 (0) | 2022.03.13 |
[Ubuntu] Docker 설치, 제거, 세팅 (0) | 2022.03.12 |
[Ubuntu] netstat, ssh, root password 등 초기 설정 (0) | 2022.03.12 |