본문 바로가기

WEB/Apache,OHS

[OHS] - DemoIdentity.jks 가 없을 때 조치

Domain 디렉토리의 security 디렉토리 내에 

DemoIdentity.jks 파일이 있어야 정상적으로 노드매니저가 기동된다.

특정 버전의 JDK의 버그로 인해 DemoIdentity.jks 파일이 생성되지 않는 상황이 간혹 발생하는데

이럴 경우 노드매니저 기동 정지가 불가하다. 

(JDK 1.8.0_161 및 JDK 1.7.0_171 이 특히 그렇다 한다)

 

해당 상황에서 조치 방법은 세 가지가 있다.

 


 

#01. 노드매니저 SSL 사용 안하도록 설정

 

{DOMAIN_HOME}/config/config.xml 파일 수정

<nm-type>Plain</nm-type> 태그 추가

 

{DOMAIN_HOME}/nodemanager/nodemanager.properties 파일 수정

SecureListner=true 부분을 false로 변경

 


 

#02. DemoIdentity.jks 파일 수동 생성

 

{OHS_HOME}/wlserver/server/bin/setWlstEnv.sh(.cmd) 파일이 존재하지 않을 시

{OHS_HOME}/oracle_common/common/bin/setWlstEnv.sh(.cmd) 을 대신 사용하여도 된다 함

OHS 설치 시 함께 설치되는 JDK의 경로는
{OHS_HOME}/oracle_common/jdk/jre/bin/java

----------------------------------------------

> cd $OHS_HOME/oracle_common/common/bin

> . ./setWlstEnv.sh

> cd $DOMAIN_HOME/security

> java utils.CertGen -keyfilepass DemoIdentityPassPhrase -certfile democert -keyfile demokey -strength 2048 -noskid

> java utils.ImportPrivateKey -keystore DemoIdentity.jks -storepass DemoIdentityKeyStorePassPhrase -keyfile demokey.pem -keyfilepass DemoIdentityPassPhrase -certfile democert.pem -alias demoidentity

 

 

setWlstEnv.sh 실행 시

setWlstEnv_internal.sh 의 위치를 찾을 수 없다는 에러가 발생하면

setWlstEnv.sh 스크립트 내용을 아래와 같이 수정한다

(NM_HOME 변수에 경로 지정하기)

 

실행 결과

 


 

#03. 임시 도메인 생성

 

임시 도메인을 생성하여

생성한 도메인의 security 디렉토리 내에 있는 DemoIdentity.jks 파일을 copy 하는 방법이다.

 

weblogic 의 boot.properties 와는 다르게

OHS 의 DemoIdentity.jks 는 다른 도메인의 파일을, 다른 장비의 파일을 가져와도

문제 없이 잘 인식이 된다.

 

동일 OHS 서버에 다른 도메인이 있다면,

그 도메인의 DemoIdentity.jks 파일을 copy 하여 가져오는 방식으로 해결하여도 된다.

 


 

참고한 오라클 문서

 

Error "Weblogic.Nodemanager.Common.Configexception: Identity KeyStore File Not Found" While Trying to Start P6 Through Node Manager 

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=415822949696523&parent=EXTERNAL_SEARCH&sourceId=PROBLEM&id=2401075.1&_afrWindowMode=0&_adf.ctrl-state=2y5es2l8d_53

 

 

FMW/WLS New Configuration with Latest JDK Failing to Start - ConfigException: Identity key store file not found: DemoIdentity.jks

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=415833704988135&parent=DOCUMENT&sourceId=2401075.1&id=2357811.1&_afrWindowMode=0&_adf.ctrl-state=2y5es2l8d_102

 

 

Regenerating DemoIdentity.jks and/or DemoTrust.jks

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=125606880485808&parent=DOCUMENT&sourceId=2357811.1&id=1392455.1&_afrWindowMode=0&_adf.ctrl-state=f1ef58dp6_298