sitelink1 https://tobepro.tistory.com/33 
sitelink2 https://www.xinet.kr/?p=3260 
extra_vars5  
extra_vars6  

Let's Encrypt 로 인증서 파일은 생성해 두었다.

tomcat native 가 아닌 일반 tomcat 을 사용하는 경우 (native 에서의 설정은 참고 링크 문서에 나온다)

server.xml 을 열어 Connector port 를 443 으로 하여 다음과 같이 설정한다

 

    <Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" 

           maxHttpHeaderSize="8192" maxThreads="150" 

               enableLookups="false" acceptCount="100" connectionTimeout="20000" 

               disableUploadTimeout="true" 

               SSLEnabled="true" scheme="https" Protocol="TLS">

   <!-- PEM SSL Password NONE / HTTP/1 / https-openssl-nio protocol 사용 (tomcat native 상관없이 동작됨 -->

        <SSLHostConfig>

            <Certificate certificateKeyFile="ssl/omnibuscode.com/privkey.pem"

                         certificateFile="ssl/omnibuscode.com/cert.pem"

                         certificateChainFile="ssl/omnibuscode.com/chain.pem"

                         type="RSA" />

        </SSLHostConfig>

    </Connector>

 

유의할 사항은 pem 파일의 위치는 루트가 톰캣 경로이다

그래서 위와 같이 상대 경로를 입력하면 톰캣 경로를 기준으로 해당 파일을 찾게 된다

"C:/~" 와 같은 절대 경로는 설정할 수가 없다 (슬래시를 역슬래시로 바꿔도 소용없더라...)

 

[참고 링크]

  • https://tobepro.tistory.com/33
  • https://www.xinet.kr/?p=1674
  • https://www.xinet.kr/?p=3260
  • https://blog.naver.com/93it-serverengineer/223035398214

 

 

번호 제목 글쓴이 날짜 조회 수
73 [ChatGPT] nginx 에서 jetty 서버로 프록시중 "org.eclipse.jetty.http.BadMessageException: 400: Invalid SNI" 오류 황제낙엽 2024.11.12 167
72 [phind] jetty 와 tomcat 의 차이점 (성능, 사용성, 선호도) 황제낙엽 2024.10.31 237
71 jsp 에서 <script> 로 import 한 js 내의 한글이 깨진다 file 황제낙엽 2024.07.14 296
70 Nginx: 413 – Request Entity Too Large file 황제낙엽 2024.02.17 213
69 nginx 설치, 실행, SSL 설정, 프록시 설정 황제낙엽 2024.02.04 129
68 [bard] Nginx로 서브 도메인에 따라 내부의 포트만 다르게 실행중인 웹서버들을 라우팅 황제낙엽 2024.02.01 136
67 [Bing] "Apache"와 "Nginx" 의 차이점 황제낙엽 2024.01.31 246
66 Nginx 에 대하여 황제낙엽 2024.01.18 149
65 "org.apache.tomcat.util.net.SecureNioChannel.getSslEngine()" is null 황제낙엽 2023.06.22 242
» windows tomcat 에 Let's Encrypt(SSL) 적용 황제낙엽 2023.06.21 285
63 AutoSet PHP 버전 업그레이드 (7.2.10 to 7.4.32) 황제낙엽 2022.10.09 624
62 401 - Unauthorized: Access is denied due to invalid credentials 황제낙엽 2021.08.27 251
61 iis error - Service Unavailable / HTTP Error 503. The service is unavailable. 황제낙엽 2020.09.23 700
60 [Bitnami WAMP] 설치후 PHP 설정 황제낙엽 2020.07.23 201
59 Autoset의 대안 Bitnami WAMP file 황제낙엽 2020.04.01 241
58 HTTP 오류 403.14 - Forbidden file 황제낙엽 2020.03.04 269
57 바인딩 편집 (사이트 바인딩) file 황제낙엽 2020.03.04 220
56 웹사이트에서 여러 도메인을 사용하는 방법 황제낙엽 2020.03.04 153
55 32비트 응용 프로그램 사용 (ASP, C#) file 황제낙엽 2019.10.31 2164
54 [Tomcat 7] org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 황제낙엽 2019.10.16 462