2016-08-17 3 views
0

Apache Tomcat 서버 (버전 7.0.35)에 SSL 인증서를 설치해야합니다. 이것은 내가 약간의 지침을 원하기 전에 어떤 경험이 있었는지가 아닙니다! 필자가 온라인에서 발견 한 메모는 새로운 설치를 다루는 것만 보입니다.Apache Tomcat/7.0.35 SSL 인증서 설치

server.xml 파일을 보면 거기에 기존 SSL 인증서와 키 저장소 구성이 있음을 알 수 있습니다.

server.xml에 이미있는 경우 새 SSL 인증서를 생성하고 추가하는 과정에 대해 조언 해 줄 수 있습니까? 예를 들어 기존 인스턴스를 제거해야합니까 아니면 새로 추가 할 수 있습니까? 추가 변경 사항이 키 저장소 파일에 필요합니까?

답변

0
Go to bin folder in server 
Run the command 
keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass password -validity 360 -keysize 2048 

then 

keytool -list -keystore keystore.jks 


In conf\server.xml edit it as 

//... 
<!-- Define a SSL HTTP/1.1 Connector on port 8443 
     This connector uses the JSSE configuration, when using APR, the 
     connector should be using the OpenSSL style configuration 
     described in the APR documentation --> 

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" 
       maxThreads="150" scheme="https" secure="true" 
       clientAuth="false" sslProtocol="TLS" 
      keystoreFile="my key store file path" 
      keystorePass="password" /> 
//... 

keystorePass = "password"는 "keytool"명령을 통해 키 스토어에 지정한 암호입니다.

enter image description here

enter image description here

는 그럼 난 .PFX 형식으로 제공되어 인증서를 추가하는 방법, URL https://localhost:8443/

enter image description here

+0

가 귀하의 회신 Abhijit 주셔서 감사를했다. 이것이 가능한가? – NAP50

+0

네, 그게 가능 하고이 작품을 누른 다음 내게 틱주세요 ... 그냥 .jar 대신 .pfx를 사용하십시오 –

+0

Abhijit 설명 주셔서 감사. – NAP50