How can you use SSL to encrypt your network traffic?
Here is how I did it.
- Install Oracle Certification Authority 10.1.4
- Install Oracle Database 10gR2 Enterprise Edition with Advanced Security Options
- Start Wallet Manager
- create a new Wallet
- add certificate request
- Start OCA
- Open OCA homepage
- Request a new certificate
- Approve the certificate
- Import the certificate in OWM
- Save the wallet
you need a CA to approve a certification request
from Database Oracle Home, start $ORACLE_HOME/bin/owm
define a password
fill the fields or chose advanced :
CN=yourhost,DC=yourdomain,DC=com
from OCA home, start $ORACLE_HOME/oca/bin/ocactl start
Open your browser on
https://yourhost.yourdomain.com:6600/oca/user
Install the ROOTca in your browser
Server/SubCA Certificates – Request a certificate – Paste String from OWM
log on the admin page,
https://yourhost.yourdomain.com:6600/oca/admin
define your identity, then in Certificate Management, select the certification request and approve it.
Select the approved certificate, view details.
In owm, import user certificate , and copy paste the BASE64 string.
To get the CA string, download the CA certificate from
https://yourhost.yourdomain.com:6600/oca/certDownload
The certificate should show [Ready]
Select Autologin
Save in system default (/etc/ORACLE/WALLETS/oracle)
Ok, we are now ready to use the TCPS protocol
listener.ora
LISTENER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)
(HOST=yourhost.yourdomain.com)(PORT=1521)))
tnsnames.ora
LSC01=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)
(HOST=yourhost.yourdomain.com)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=LSC01)))
Start the listener
$ lsnrctl start
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)
(HOST=yourhost.yourdomain.com)(PORT=1521)))
The command completed successfully
Test it!
$ sqlplus scott/tiger@lsc01
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
SQL>
Nifty! Thanks or posting that.
Pingback: Laurent Schneider » Blog Archive » check if using tcp or tcps
Pingback: Laurent Schneider » Blog Archive » user identified externally with SSL certificate
It’s wierd to provide SSL encryption only as part of “Advanced security” option of Enterprise Edition.
It is year 2007 now. SSL is basic for few years, not “Advanced”!
I have multiple customers who use SSH tunnel to save 25% on license cost. Well, if you need security, you should not be too greedy 😈
Thanks for posting this Laurent.
It’s a very comprehensive note and has saved me a lot of time.
Mostly because my client does not have the Advanced Security Option so we have to rule out SSL for the moment.
Thanks,
Alan…
Pingback: OOW10: All Over « ORAganism
Pingback: jdbc ssl | Laurent Schneider
Hello Mr.Schneider
Thank you very much for such detailed explaination. My question is using TCPS in Listener.ora in Datagaurd environment: First is it Possible to implment this in dataguard(one Physical standby) environment in Oracle 11.2.0.4 in Suse Linux 11 Sp4.
Apart from this can we use listener Class of Secure Transports (COST) Parameters in Dataguard environment
SECURE_CONTROL_listener_name
SECURE_REGISTER_listener_name
SECURE_PROTOCOL_listener_name
DYNAMIC_REGISTRATION_listener_name
Thanks & Regards
sam
yes you can use dataguard and also Entreprise Manager version 13c (but no 10g/11g/12c)