UTL_HTTP.SET_WALLET(v_wallet_path,v_wallet_password);
The hard bit is importing certificates into a wallet.
- Start Oracle Wallet Manager
# xhost +
access control disabled, clients can connect from any host
# su - oracle
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
-bash-3.00$ export DISPLAY=:1 (if you are using VNC)
-bash-3.00$ owm
If the DB is on another machine, do the following:
-bash-3.00$ export DISPLAY=192.168.1.58:1
-bash-3.00$ owm - Hit the new wallet button
- "Your default wallet does not exist, do you want to create it?"
No - Prompt for wallet password. Enter whatever you prefer.
- "A new empty wallet has been created. Do you want to create a new certificate request at this time?"
No - Right click on trusted certificates in the hierarchy on the left
- Choose Import Certificate
- "Choose a method to select the certificate"
( ) Paste the certificate
(x) Load the certificate from a file - Go to another terminal
Here are the instructions for Sun Appserver - # cd /var/opt/SUNWappserver/domains/domain1/config
- List certificates:
/opt/SUNWappserver/appserver/lib/certutil -L -d . - You should see s1as in the list. Then type:
/opt/SUNWappserver/appserver/lib/pk12util -o ascerts.p12 -n s1as -d . - This spits out a pkcs12 format certificate.
Now onto OpenSSL: - Oracle wallet requires x509, you need to use openssl to convert to pem and then to x509.
# ./openssl pkcs12 -in /export/home/admin/ascerts.p12 -clcerts -nokeys -out satin.acceleresystems.com.cert.pem
Enter Import Password:
MAC verified OK
# ./openssl pkcs12 -in /export/home/admin/ascerts.p12 -nocerts -nodes -out satin.acceleresystems.com.key.pem
Enter Import Password:
MAC verified OK - Now convert to X509
# ./openssl x509 -in satin.acceleresystems.com.cert.pem -out satin.acceleresystems.com.cert.x509 - Copy file to the machine with Oracle, and finish the import using OWM
- Save the wallet to /export/home/oracle/wallets. You can't set the name, but it will be ewallet.p12. To use the wallet you only need the directory name (see next step).
- You can now access the wallet from Oracle using UTL_HTTP.set_wallet('file:/export/home/oracle/wallets','password');
If editing an existing wallet, you need to hit open and navigate to the wallets directory. Continue even though you have no default set.
1 comment:
Hello Peter,
I habe a Question to Step 14 - Second Call.
./openssl pkcs12 -in /export/home/admin/ascerts.p12 -nocerts -nodes -out satin.acceleresystems.com.key.pem
What generates the script the file "satin.acceleresystems.com.key.pem"?
Why is it used?
Post a Comment