Search

WebtoB 싱글 [갱신]

Multi-select
SSL
TLS
SSL인증서
SSL보안서버
보안서버 인증서
보안서버
HTTPS
UCERT
유서트
CodeSign
코드싸인
Apache
IIS
Ngnix
Tomcat
WebtoB

작업 전 참고사항

이 문서는 일반적인 설정이며
서버마다 설정이 상이할 수 있어 인증서 설치 시 해당 문서 참고 부탁드립니다.

인증기관 Root & Chain 인증서 구분

※ 인증기관별 하단의 링크를 참고해주세요.

진행 과정

1. 발급 받으신 인증서를 해당 SSL 폴더에 업로드 또는 저장합니다.

2. [$Webtob_Home]/config/ http.m 파일을 열어 SSL 환경 설정을 합니다.

멀티 인증서의 경우 해당 도메인들에 대하여 포트번호를 동일하게 설정이 가능 합니다.
※ 필요한 문구만을 출력하였습니다. 기존 설정 내용과 상이할 수 있는 점 유의바랍니다.
[root@localhost webtob]$ vi config/http.m
*NODE
UCERT            WEBTOBDIR="/usr/local/webapp/webtob ",
SHMKEY = 54000,
DOCROOT="/usr/local/webapp/webtob/docs/ucert/",   #기본 홈디렉토리
PORT = "80",                         #설명 : 기본 http 포트
HTH = 2                           #설명 : Jesus 연동 Count
JSVPORT = 9900,               #설명 : Jesus 연동 포트
IPCPERM = 0777,
NODENAME = "$(NODENAME)",
SERVICEORDER = "ext,uri",
INDEXNAME = "index.jsp,index.html,index.htm",
LOGGING = "log1",
ERRORLOG = "log2"
*VHOST
ucert_ssl        DOCROOT="/usr/local/webapp/webtob/docs/ucert/"
NODENAME=ucert,
PORT="443",
SSLFLAG=Y,
SSLNAME="ucertssl", #SSLNAME을 설정 합니다.
HOSTNAME = "sslinstall.ucert.co.kr",
HOSTALIAS = "111.222.111.222",    #대표 도메인 외 별칭을 지정합니다.
ServiceOrder="uri,ext",
LOGGING="log1_vhmytx",
ERRORLOG="log2_vhmytx"
*SSL
ucertssl               CertificateFile = "/usr/local/webtob/config/ssl/File_sslinstall.ucert.co.kr.crt ",
#설명 : 인증서 경로 설정 및 파일 명
CertificateKeyFile = "/usr/local/webtob/config/ssl/KeyFile_sslinstall.ucert.co.kr.key ",
#설명 : 개인키 경로 설정 및 파일 명
CertificateChainFile ="/usr/local/webtob/config/ssl/ChainFile_ChainBundle.crt",
#설명 : Chain 인증서 경로 설정 및 파일 명
CACertificateFile = "/usr/local/webtob/config/ssl/CA_GLOBALSIGN_ROOT_CA.crt"
#설명 : Root 인증서 경로 설정 및 파일 명
*SVRGROUP
htmlg      SVRTYPE = HTML
jsvg        SVRTYPE = JSV, VhostName = "ucert, ucert_ssl"
#설명 : Servlet 호출을 위한 Jeus 연동 할 가상 호스트 선언
*SERVER
html      SVGNAME = htmlg, MinProc = 50, MaxProc = 50, ASQCount = 1
MyGroup  SVGNAME = jsvg, MinProc = 100, MaxProc = 200
*URI
uri1 Uri = "/", Svrtype = JSV, SvrName = MyGroup, VhostName = " ucert, ucert_ssl "
#설명 : Servlet 호출을 위한 Jeus 연동 할 가상 호스트 선언

3. 기존 인증서의 백업을 진행합니다.

※ 기존 인증서는 반드시 백업을 할 수 있도록 합니다.
※ 인증서 파일의 파일명은 예시이므로 사용자 설정에 따라 인증서 파일명이 달라질 수 있습니다.
root@localhost ssl]$ mkdir ucert_2016
[root@localhost ssl]$ cp * ucert_2016/
[root@localhost ssl]$ ll
-rw-r--r--. 1 root root 1931 Jan 1 00:00 CA_GLOBALSIGN_ROOT_CA.crt
-rw-r--r--. 1 root root 1744 Jan 1 00:00 File_sslinstall.ucert.co.kr.crt
-rw-r--r--. 1 root root 1931 Jan 1 00:00 KeyFile_sslinstall.ucert.co.kr.key
-rw-r--r--. 1 root root 1931 Jan 1 00:00 ChainFile_ChainBundle.crt
drw-r--r--. 1 root root 1931 Jan 1 00:00 ucert_2016

4. WebtoB 설정 파일 컴파일을 합니다.

※ 컴파일 미진행 시 수정한 내용 적용이 되지 않아 필수 진행이 필요하며, 위와 같이 Successfully 확인 후 Webtob 재시작 진행 부탁드립니다.
[root@localhost webtob]# wscfl –i http.m  #설정 파일을 수정 후 컴파일 작업을 합니다.
urrent configuration:
Number of client handler(HTH) = 1
Supported maximum user per node = 4047
Supported maximum user per handler = 4047
Successfully created the configuration file (/root/webtob/config/wsconfig) for node UCERT.
The host name of the running machine is UCERT.

5. WebtoB를 재시작합니다.

[root@localhost webtob]# wsdown
Do you really want to shut down WebtoB? (y : n): y
WSDOWN for node(localhost) is starting:
WSDOWN: SERVER(html:1) downed: Fri Jan 1 00:00:00 2016
WSDOWN: SERVER(html:0) downed: Fri Jan 1 00:00:00 2016
WSDOWN: SERVER(cgi:11) downed: Fri Jan 1 00:00:00 2016
WSDOWN: SERVER(ssi:21) downed: Fri Jan 1 00:00:00 2016
WSDOWN: SERVER(ssi:20) downed: Fri Jan 1 00:00:00 2016
WSDOWN: SERVER(cgi:10) downed: Fri Jan 1 00:00:00 2016
WSDOWN: HTL downed: Fri Jan 1 00:00:00 2016
WSDOWN: HTH downed: Fri Jan 1 00:00:00 2016
WSDOWN: WSM downed: Fri Jan 1 00:00:00 2016
WSDOWN: WebtoB is down
[root@localhost webtob]# wsboot
Booting WebtoB on node (UCERT)
Welcome to WebtoB demo system. It will expire on 2016/06/27
Today is 2016/06/07
Starting WSM at Fri Jan  1 00:00:00 2016
Starting HTL at Fri Jan  1 00:00:00 2016
Starting HTH at Fri Jan  1 00:00:00 2016
Current WebtoB Configuration:
Number of client handlers (HTH) = 1
Supported maximum user per node = 4047
Supported maximum user per handler = 4047
Starting SVR(htmls) at Fri Jan 1 00:00:00 2016
Starting SVR(htmls) at Fri Jan 1 00:00:00 2016
Starting SVR(cgis) at Fri Jan 1 00:00:00 2016
Starting SVR(cgis) at Fri Jan 1 00:00:00 2016
Starting SVR(ssis) at Fri Jan 1 00:00:00 2016
Starting SVR(ssis) at Fri Jan 1 00:00:00 2016

6. 설정하신 SSL 포트가 Listen 상태인지 확인합니다.

[root@localhost ~]# netstat -nlp | grep htl
tcp     0 0 :::80         :::* LISTEN
tcp     0 0 :::443       :::* LISTEN

7. 서버 내에서 인증서 갱신을 확인합니다.

※ openssl 명령어 적용이 안될 경우 wbssl 로 변경 후 진행 부탁드립니다.
[root@localhost ~]#  echo "" | openssl s_client -connect localhost:443 | openssl x509 -noout -dates
notBefore=Jan 1 00:24:14 2016 GMT  #인증서 시작일 
notAfter=Dec 31 :38:20 2017 GMT  #인증서 만료일

인증서 확인하기

- 웹페이지에서의 인증서 확인 방법

※ 도메인 접속 후, ‘Alt 키’ 누르기 → ‘파일 > 속성 > 인증서’ 클릭 → 인증서 보기를 선택 하시면 인증서 정보를 확인 할 수 있습니다.
발급 대상유효 기간이 맞는지 확인합니다.

관련된 자료가 더 필요하신가요?