본문 바로가기

WEB - Apache 계열/각종 설정

[OHS] 테스트용 SSL 인증서 생성 (orapki 사용)

테스트 환경

OHS12.2.1.4

 

환경변수 세팅

export ORACLE_HOME=/app/ohs/ohs_12214
export PATH=${ORACLE_HOME}/oracle_common/bin:$PATH
export JAVA_HOME=/usr/jdk/jdk1.8.0_202

 

인증서 생성

$ORACLE_HOME/oracle_common/bin/orapki wallet create -wallet ./wallet -compat_v12 -auto_login_only

$ORACLE_HOME/oracle_common/bin/orapki wallet add -wallet ./wallet -dn 'CN=localhost, OU=FOR TESTING ONLY, O=FOR TESTING ONLY, L=Seoul, ST=Seoul, C=KR' -keysize 2048 -sign_alg sha256 -asym_alg RSA -self_signed -validity 36500 -auto_login_only

$ORACLE_HOME/oracle_common/bin/orapki wallet display -wallet /app/ohs/ohs_12214/domains/ehc_domain/wallet/wallet