Exit from Internet Explorer.
Transfer all of the SSL certificates to the database server. For now,
I'll transfer the new certificates to the
/home/oracle directory on the
database server:
Figure
7: Copy Certificates to Database Server
Create Oracle Wallet
Create the Wallet Directory
[oracle@racnode1 ~]$ mkdir -p /u02/oradata/racdb/wallet
Start Oracle Wallet Manager
[oracle@racnode1 ~]$ owm
Create a New Oracle Wallet
Using Oracle Wallet Manager, create a new wallet:

Figure
8: Create a New Oracle Wallet
Do not select the default location:

Figure
9: Do Not Select Default Location
Provide a password � "wallet_password"
and make certain to create a Standard wallet type:

Figure
10: Create Wallet Password
No need to create a certificate request � we will be
importing the SSL certificates created in the previous section into
the new Oracle Wallet:

Figure
11: Do Not Create a Certificate Request
Import Certificate into the Oracle Wallet
The next step will be to import each certificate
into the new Oracle wallet (one at a time). The following example
demonstrates how to import the CentOS certificate . Remember to
import both certificates (CentOS and GeoTrust) into the Oracle
wallet using the same method as described in this example.

Figure
12: Import Trusted Certificate...

Figure
13: Select File That Contains the Certificate.

Figure
14: Select www.centos.org Certificate
Remember to use the same method to import all remaining
certificates before saving the Oracle Wallet:
geotrust_ssl.cer
Now, save the new wallet

Figure
15: Save the New Oracle Wallet
Choose the directory to save the wallet in
(i.e. /u02/oradata/racdb/wallet):

Figure
16: Save the New Oracle Wallet
Verify new wallet file � (file will be named
ewallet.p12)
[oracle@racnode1 ~]$ ls -l /u02/oradata/racdb/wallet
total 32
-rw------- 1 oracle oinstall 9797 Sep 13 11:05 ewallet.p12
Exit Oracle Wallet Manager:

Figure
17: Exit Oracle Wallet Manager
Establish Encrypted Connection
Now that the new Oracle Wallet exists on the database server and
all SSL certificates have been imported into the wallet, use the
UTL_HTTP.SET_WALLET procedure to identify the Oracle wallet file:
CONNECT scott/tiger
SET serveroutput ON
DECLARE
HTTP_REQ UTL_HTTP.REQ;
HTTP_RESP UTL_HTTP.RESP;
URL_TEXT VARCHAR2(32767);
BEGIN
DBMS_OUTPUT.ENABLE(1000000);
UTL_HTTP.SET_WALLET('file:/u02/oradata/racdb/wallet', 'wallet_password');
HTTP_REQ := UTL_HTTP.BEGIN_REQUEST('https://www.centos.org/');
UTL_HTTP.SET_HEADER(HTTP_REQ, 'User-Agent', 'Mozilla/4.0');
HTTP_RESP := UTL_HTTP.GET_RESPONSE(HTTP_REQ);
-- Process Request
LOOP
BEGIN
URL_TEXT := null;
UTL_HTTP.READ_LINE(HTTP_RESP, URL_TEXT, TRUE);
DBMS_OUTPUT.PUT_LINE(URL_TEXT);
EXCEPTION
WHEN OTHERS THEN EXIT;
END;
END LOOP;
UTL_HTTP.END_RESPONSE(HTTP_RESP);
END;
/
Connected.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
... < SNIP > ...
</div>
</td>
</tr>
</table>
</center>
</body>
</html>
PL/SQL procedure successfully completed.
CONNECT scott/tiger
SET serveroutput ON
DECLARE
HTTP_REQ UTL_HTTP.REQ;
HTTP_RESP UTL_HTTP.RESP;
URL_TEXT VARCHAR2(32767);
BEGIN
DBMS_OUTPUT.ENABLE(1000000);
UTL_HTTP.SET_WALLET('file:/u02/oradata/racdb/wallet', 'wallet_password');
HTTP_REQ := UTL_HTTP.BEGIN_REQUEST('https://www.centos.org/');
UTL_HTTP.SET_HEADER(HTTP_REQ, 'User-Agent', 'Mozilla/4.0');
HTTP_RESP := UTL_HTTP.GET_RESPONSE(HTTP_REQ);
-- Process Request
LOOP
BEGIN
URL_TEXT := null;
UTL_HTTP.READ_LINE(HTTP_RESP, URL_TEXT, TRUE);
DBMS_OUTPUT.PUT_LINE(URL_TEXT);
EXCEPTION
WHEN OTHERS THEN EXIT;
END;
END LOOP;
UTL_HTTP.END_RESPONSE(HTTP_RESP);
END;
/
Connected.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
... < SNIP > ...
</div>
</td>
</tr>
</table>
</center>
</body>
</html>
PL/SQL procedure successfully completed.
CONNECT scott/tiger
SET serveroutput ON
DECLARE
HTTP_REQ UTL_HTTP.REQ;
HTTP_RESP UTL_HTTP.RESP;
URL_TEXT VARCHAR2(32767);
BEGIN
DBMS_OUTPUT.ENABLE(1000000);
UTL_HTTP.SET_WALLET('file:/u02/oradata/racdb/wallet', 'wallet_password');
HTTP_REQ := UTL_HTTP.BEGIN_REQUEST('https://www.centos.org/');
UTL_HTTP.SET_HEADER(HTTP_REQ, 'User-Agent', 'Mozilla/4.0');
HTTP_RESP := UTL_HTTP.GET_RESPONSE(HTTP_REQ);
-- Process Request
LOOP
BEGIN
URL_TEXT := null;
UTL_HTTP.READ_LINE(HTTP_RESP, URL_TEXT, TRUE);
DBMS_OUTPUT.PUT_LINE(URL_TEXT);
EXCEPTION
WHEN OTHERS THEN EXIT;
END;
END LOOP;
UTL_HTTP.END_RESPONSE(HTTP_RESP);
END;
/
Connected.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
... < SNIP > ...
</div>
</td>
</tr>
</table>
</center>
</body>
</html>
PL/SQL procedure successfully completed.