oracle 监听加密 tcps,Oracle 配置TCPS协议

本文档详细介绍了如何使用orapki工具在Oracle服务器和客户端之间配置SSL加密的TCPS连接。步骤包括创建自签名证书、导入对方的根证书到钱包,并修改listener.ora和sqlnet.ora文件以启用TCPS监听和SSL加密。配置完成后,防火墙需关闭1521端口,只开放2484端口供加密连接使用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Configuring SSL for Client Authentication and Encryption With Self Signed Certificates On Both Ends Using orapki (Doc ID 401251.1)

One can set up the SSL authentication as described in this note only when testing this authentication method or when the number of the users authenticated via SSL is not large. The rationale is that in this note the client signs it’s own certificate and we import the root certificate of the client into the wallet of the server. As such for a large number of different users we will end up with too many client root certificates being imported into the wallet of the server.

只有在测试此身份验证方法或通过SSL进行身份验证的用户数量不多时,才可以设置本说明中所述的SSL身份验证。

其基本原理是,在本说明中,客户机签署自己的证书,然后我们将客户机的根证书导入到服务器的钱包中。

因此,对于大量不同的用户,我们最终会有太多的客户端根证书被导入到服务器的钱包中。

-- ### 服务端 (注意:服务器不需要生成服务器的客户端版本的CA证书)

-- 创建目录

su - oracle && cd /u01/app/grid/product/db/network/admin

mkdir wallet_location

cd wallet_location

wallet_location=`pwd`

-- (初始化)创建初始化wallet 生成文件: cwallet.sso,ewallet.p12

orapki wallet help

orapki wallet create -wallet ${wallet_location} -auto_login -pwd pwd123456

-- (服务端)创建自签名证书,生成用户证书和CA根证书

orapki wallet add -wallet ${wallet_location} -dn "CN=server" -keysize 512 -self_signed -validity 365 -pwd pwd123456

-- (服务端)导出CA根证书书

orapki wallet export -wallet ${wallet_location} -dn "CN=server" -cert server_ca1.cert

-- ### 客户端

su - oracle

cd /u01/app/grid/product/db/network/admin

mkdir wallet_location

cd wallet_location

wallet_location=`pwd`

-- (初始化)创建初始化wallet 生成文件: cwallet.sso,ewallet.p12

orapki wallet create -wallet $wallet_location -auto_login -pwd pwd123456

-- (客户端)创建自签名证书

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值