회원가입| 아이디/비밀번호

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

 

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

 
홈 > 가이드 > SSL설치가이드
Tomcat 5.x / 6.x (Keytool)

 ① 발급 받은 인증서를 Tomcat 서버에 복사합니다.
 
 ② Keystore에 체인인증서 / 웹서버인증서 설치
# 키스토어에 체인 인증서(bundle.crt)를 추가 합니다 #
[root@localhost ssl]# keytool -import -alias chain -keystore /usr/local/tomcat/ssl/TomcatKeyStore -trustcacerts -file bundle.crt

# 키스토어에 웹서버 인증서(www_innocert_co_kr.crt)를 추가 합니다 #
[root@localhost ssl]# keytool -import -alias innocert -keystore /usr/local/tomcat/ssl/TomcatKeyStore -trustcacerts -file www_innocert_co_kr.crt

(주의) 웹서버 인증서에서의 alias는 Keystore의 alias name과 반드시 동일해야 합니다.

 
 ② 톰캣 환경 파일 설정 (server.xml)
[root@localhost conf]# vi $TOMCAT_HOME/conf/server.xml

[Tomcat 6.X]
<Connector port="443" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true" acceptCount="100" debug="0" scheme="https"
secure="true" SSLEnabled="true" clientAuth="false" sslProtocol="TLS"
keystoreFile="/usr/local/tomcat/ssl/TomcatKeyStore"
keystorePass="패스워드">


[Tomcat 5.X]
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150"
scheme="https" secure="true" clientAuth="false" sslProtocol="TLS"
keystoreFile="/usr/local/tomcat/ssl/TomcatKeyStore"
keystorePass="패스워드">


[Tomcat 4.X]
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="443" minProcessors="5" maxProcessors="75" enableLookups="true"
acceptCount="100" debug="0" scheme="https" secure="true"
useURIValidationHack="false" disableUploadTimeout="true">
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
keystoreFile="/usr/local/tomcat/ssl/TomcatKeyStore"
keystorePass="패스워드"
clientAuth="false" protocol="TLS">
 
 ③ 서비스 재시작
[root@localhost conf]# $TOMCAT_HOME/bin/shutdown.sh
[root@localhost conf]# $TOMCAT_HOME/bin/startup.sh