인공지능 강아지 심리 테스트(무료)
오늘로또 당첨분석 및 행운번호 받기(무료)

티스토리 뷰

반응형
[java] https(443) 로컬 접속 tomcat

로컬 443 인증서 추가
keytool -genkey -alias tomcat -keyalg RSA



CMD(윈도우키 + R) 오픈하고 아래 명령어 입력

C:\Users\user>keytool -genkey -alias tomcat -keyalg RSA  
Enter keystore password:  
What is your first and last name?  
[Unknown]: shm  
What is the name of your organizational unit?  
[Unknown]: zest0804  
What is the name of your organization?  
[Unknown]: zest0804  
What is the name of your City or Locality?  
[Unknown]: seoul  
What is the name of your State or Province?  
[Unknown]: gangnam  
What is the two-letter country code for this unit?  
[Unknown]: KR  
Is CN=shm, OU=zest0804, O=zest0804, L=seoul, ST=gangnam, C=KR correct?  
[no]: Y  

Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 90 days  
for: CN=shm, OU=zest0804, O=zest0804, L=seoul, ST=gangnam, C=KR  



로컬 인증서가 존재한다면 삭제
keytool -delete -alias tomcat


server.xml에 추가
<Connector SSLEnabled="true" clientAuth="false" keystoreFile="${user.home}/.keystore"
keystorePass="123456" maxThreads="150" port="8443" protocol="HTTP/1.1" scheme="https" secure="true" sslProtocol="TLS"/>

반응형
댓글

쿠팡 파트너스 활동을 통해, 일정액의 수수료를 제공받습니다.
반응형