Jenkins 에서 사용 할 SSL 인증서를 변환했던 기록
(주1) D:\sys\SSL\for_tomcat 폴더에서 작업을 진행했었다.
※ Create SSL By Java Keytool For Tomcal Connector
D:\>cd D:\sys\SSL\for_tomcat
D:\sys\SSL\for_tomcat>keytool -genkey -keyalg rsa -alias localtomcat - keystore localtomcat
Picked up JAVA_TOOL_OPTIONS: -Djava.net.preferIPv4Stack=true
이 조직의 두 자리 국가 코드를 입력하십시오.
CN=20.1.1.120, OU=IT, O=SKEncar, L=Seoul, ST=Seoul, C=82이(가) 맞습니까?
<localtomcat>에 대한 키 비밀번호를 입력하십시오.
(키 저장소 비밀번호와 동일한 경우 Enter 키를 누름):
D:\sys\SSL\for_tomcat>keytool -certreq -alias localtomcat -keyalg rsa -file csr.txt -keystore localtomcat
# Root 인증서(최상위 인증기관 인증서) 합치기 - import
D:\sys\SSL\for_tomcat>keytool -import -alias Root -trustcacerts -file D:\sys\SSL\20141105\GLOBALSIGN_ROOT_CA.crt -keystore localtomcat
인증서가 <globalsignca> 별칭 아래에 있는 시스템 차원의 CA 키 저장소에 존재합니다
고유한 키 저장소에 추가하겠습니까? [아니오]: y
# 체인인증서(중간기관 인증서) 합치기 - import
D:\sys\SSL\for_tomcat>keytool -import -alias Intermediate -trustcacerts -file D:\sys\SSL\20141105\GLOBALSIGN_ORGANIZATION_VALIDATION_CA__G2.crt -keystore localtomcat
# 인증기관에서 발급받은 인증서 합치기 - import
D:\sys\SSL\for_tomcat>keytool -import -alias testlocaltomcat -trustcacerts -file D:\sys\SSL\20141105\star.crt -keystore localtomcat
※ USE SSL In Tomcal Connector
keystoreFile="D:/sys/SSL/for_tomcat/localtomcat"