在 CentOS 上运行的 WebLogic 里,“加密”通常指下面几类场景。你可以根据目的选择对应方案:
WebLogic 使用 Cipher 对密码加密,保存在:
$DOMAIN_HOME/config/config.xml
$DOMAIN_HOME/config/jdbc/
方式:
SerializedSystemIni.dat 加密✅ 不需要手动加密
❌ 不能跨域使用
cd $WL_HOME/common/bin
./wlst.sh
encrypt("your_password", "/u01/weblogic/user_projects/domains/base_domain")
输出示例:
{AES}abcdef123456...
可用于:
vi $DOMAIN_HOME/servers/AdminServer/security/boot.properties
内容:
username=weblogic
password={AES}xxxxxx
WebLogic 启动后会自动加密为密文。
适合合规要求高的环境
cryptsetup luksFormat /dev/sdb
cryptsetup open /dev/sdb encrypted_disk
mkfs.ext4 /dev/mapper/encrypted_disk
gpg -c domain_config.zip
keytool -genkeypair -alias weblogic -keyalg RSA \
-keystore keystore.jks -validity 365
Environment → Servers → AdminServer
→ SSL → Private Keystore / Trust Keystore
端口改为 7002(HTTPS)
✅ 使用非 root 用户运行 WebLogic
✅ boot.properties 加密
✅ 启用 SSL
✅ 限制 $DOMAIN_HOME 权限(700)
✅ 定期备份 SerializedSystemIni.dat
如果你能说明:
我可以给你 更精确的操作步骤。