`
jiagou
  • 浏览: 2531411 次
文章分类
社区版块
存档分类
最新评论

Changing hostname/IP for Weblogic 11g

 
阅读更多

Changing hostname/IP for Weblogic 11g


Recently I had to migrate two VMs hosting SOA/WebCenter 11g respectively from our US centers to India centers. This involved change in the hostname/IP of the two servers. Now the process is already documented @
http://download.oracle.com/docs/cd/E12839_01/core.1111/e10105/host.htm#CHDGEDCF.
But as is with all documents, not everything is documented!

The startManagedServer.sh script has the URL of the AdminServer hard-coded. So you have to change that too. Having done this, start the nodemanager.
When you start your nodemanager, you might encounter the below error (in the AdminServer logfile):

BEA-090504 - Certificate chain received from localhost - 127.0.0.1 failed hostname verification check. Certificate contained xyz.abc.com but check expected localhost
OR
BEA-090482 - BAD_CERTIFICATE alert was received from localhost.localdomain - 127.0.0.1. Check the peer to determine why it rejected the certificate chain (trusted CA configuration, hostname verification). SSL debug tracing may be required to determine the exact reason the certificate was rejected.

There are two ways to solve it.

1. Disable Flags - Jugaad way ;)
Put the following flags at the right places.
Node Manager: -Dweblogic.nodemanager.sslHostNameVerificationEnabled=false
Admin Server: -Dweblogic.security.SSL.ignoreHostnameVerification=true

2. Recreate the Certificates - The recommended way.
Node manager by default uses the WebLogic demo identity keystore. The keystore is generated at install time using the CertGen utility. The generated private key uses the common name (cn) resolved by Java.

2.1 Set the PATH
. $WL_HOME/server/bin/setWLSEnv.sh

2.2 Backup DemoIdentity.jks under $WL_HOME/server/lib


2.3 Generate the private key.

java utils.CertGen -cn hostname -keyfilepass DemoIdentityPassPhrase -certfile newcert -keyfile newkey

2.4 Import the key generated above to the keystore.

java utils.ImportPrivateKey -keystore DemoIdentity.jks -storepass DemoIdentityKeyStorePassPhrase -keyfile newkey.pem -keyfilepass DemoIdentityPassPhrase -certfile newcert.pem -alias demoidentity

2.5 Copy DemoIdentity.jks to $WL_HOME/server/lib


2.6 Restart your nodemanager.

That's it !

Hi Rb,
I cloned my old WL server to a new server using Mono.
After that i got the same certificate problem when starting the new WL, so i tried your 2nd option to re-generate CA. However I stucked at step 3 with this error:

Exception in thread "Main Thread" java.lang.NoClassDefFoundError: utils/CertGen
Could not find the main class: utils.CertGen. Program will exit.

Could you please advise me how to fix this problem. Thank you
Could not find the main class: utils.CertGen

ZeroUm said...

TuanNA,

if setWLSEnv.sh isn't setting the environment variables, export them with the script's output.

In Linux:

export CLASSPATH=...............
export PATH=....................

Sudheshpnair said...

You should add java utils.CertGen -cn other wise it will throw the below error.
Unknown option: DemoIdentityPassPhrase

Usage: java utils.CertGen
-certfile -keyfile
-keyfilepass
[-cacert ][-cakey ]
[-cakeypass ]
[-selfsigned][-strength ]
[-e ][-cn ]
[-ou ][-o ]
[-l ][-s ][-c ]
[-keyusage [digitalSignature,nonRepudiation,keyEncipherment
dataEncipherment,keyAgreement,keyCertSign,
cRLSign,encipherOnly,decipherOnly]]
[-keyusagecritical true|false]
[-subjectkeyid ]
[-subjectkeyidformat UTF-8|BASE64]
[-help]


分享到:
评论

相关推荐

    网络ip扫描工具,根据hostname也可以

    网络ip扫描工具,根据hostname也可以

    ftp_hostname_ip_mac

    自己写的可以将本机机器名、ip、mac信息上传至指定ftp的程序 210K

    docker-wnameless-oracle-xe-11g百度盘地址.zip

    docker oracle的离线镜像docker-wnameless-oracle-xe-11g.tar,可以导入到内网(无互联网)环境使用,该包是基于wnameless的Oracle打包的,由于网速慢,我是使用 git clone ...

    TCP/UDP网络调试助手

    foreach (IPAddress _IPAddress in Dns.GetHostEntry(Dns.GetHostName()).AddressList) { if (_IPAddress.AddressFamily.ToString() == "InterNetwork") { AddressIP = _IPAddress.ToString(); ip = _IP...

    IP 与hostname和域名之间的转换java源码

    用于IP与HOSTNAME的java awt编程

    Linux中hostname修改方法详解

    Linux操作系统的hostname是一个kernel变量,可以使用如下两种方式查看 # hostname 和 # cat /proc/sys/kernel/hostname 临时修改hostname 通过hostname命令可以设置系统的hostname # hostname newname new...

    Url ReWrite(URL重写的例子)

    比如浏览器发来请求 hostname/101.aspx ,服务器自动将这个请求中定向为http://hostname/list.aspx ?id=101<br>url重写的优点在于: l 缩短url,隐藏实际路径提高安全性 l 易于用户记忆和键入。 l 易于被...

    Oracle11g RAC 实施手册

    useradd –g 501 –G 502 –d /oracle/oracle oracle passwd oracle chown -R oracle.oinstall /oracle/oracle 3.1.8 修改主机名 vi /etc/sysconfig/network HOSTNAME=rac1 # hostname rac1

    VC gethostname获取计算机名和IP地址.rar

    VC 获取计算机名和IP地址,基于MFC的,是一...具体来说是使用gethostname获取主机名(计算机名),使用GetIPAddress来获取IP地址的字符串,然后再经过字符转换成IP格式,这个例子挺简单,对研究MFC的朋友,或许有帮助。

    【IT十八掌徐培成】Hadoop第01天-01.hosts-hostname-ip修改-启动模式切换-dns.zip

    【IT十八掌徐培成】Hadoop第01天-01.hosts-hostname-ip修改-启动模式切换-dns.zip

    基于java开发的在线题库系统.zip

    找到tamguo-tms下面的application.propertys。...redis.hostname // redis 服务地址 redis.port // redis 端口 file.storage.path // 上传文件存放路径 确定propertys正确后,用springboot 方式启动应用。

    通过Host名获取IP地址

    Delphi 通过Host名得到IP地址 由于Host解析IP会消耗一定时间,请勿在大量循环中使用,否则将导致程序未响应。 已将代码封装成函数

    springcloud注册hostname或者ip的那些事

    Spring cloud是一个基于Spring Boot实现的服务治理工具包,在微服务架构中用于管理和协调服务的。这篇文章主要介绍了springcloud注册hostname或者ip,需要的朋友可以参考下

    C++使用SOCKET实现TCP-IP协议的通讯最好的DEMO源码

    那建立服务器的时候就可以选择侦听的使用的是哪个网络端口了,不过一般的电脑只有一个网络端口,你可以懒点直接写个固定的函数直接获取IP地址System.Net.Dns.GetHostAddresses(System.Net.Dns.GetHostName())[0]...

    使用SOCKET实现TCP-IP协议的通讯最好的DEMO源码

    那建立服务器的时候就可以选择侦听的使用的是哪个网络端口了,不过一般的电脑只有一个网络端口,你可以懒点直接写个固定的函数直接获取IP地址System.Net.Dns.GetHostAddresses(System.Net.Dns.GetHostName())[0]...

    MAC/网卡IP地址获取 Delphi程序.rar

    Delphi获取电脑IP地址、MAC网卡物理地址、本机名称等,网络相关信息获取,基本的Delphi网络参数获取代码,高手请绕行吧。通过调用Api函数gethostname,gethostbyname,wsastartup,uses中加winsock,介绍wsadata,...

    GetIP PB获取IP的DLL

    Function uLong Gethost(ref string hostname) Library "GetIP60.dll" ALIAS FOR "Gethost;ansi" 调用方法 string ls_Host = space(256) int result result = Gethost(ls_Host) if result =0 then sle_1.text=...

    hostname命令 显示和设置系统的主机名

    hostname命令用于显示和设置系统的主机名称。环境变量HOSTNAME也保存了当前的主机名。 在使用hostname命令设置主机名后,系统并不会永久保存新的主机名,重新启动机器之后还是原来的主机名。如果需要永久修改主机名...

    Unix上安装WebLogic10详解

     安装介质:Oracle Weblogic 10.3.3  需注意/usr和/tmp的空间不要太小,请至少分配1G以上。  hostname要正确设置,否则启动服务会出现这样的错误信息:Could not obtainthe localhost address。 希望对大家...

    解决IP地址冲突的完美方法--DHCP SNOOPING

    Initially, all IP traffic on the port is blocked except for DHCP packets that are captured by the DHCP snooping process. When a client receives a valid IP address from the DHCP server, or when a ...

Global site tag (gtag.js) - Google Analytics