John’s Oracle Experiences

My everyday experiences with Oracle products

Archive for July 2nd, 2009

java.security.cert.CertificateException: java.io.EOFException

Posted by John Paul van Helvoort on July 2, 2009

tomcat@xxx $ keytool -import -trustcacerts -file cert_xxxx.pem -alias login.example.nl  -keystore ssl.keystore
Enter keystore password:  xxx
keytool error: java.security.cert.CertificateException: java.io.EOFException

After opening the pem file we saw a strange “enter” after the END CERTIFICATE.

—–END CERTIFICATE—–

~

After removing this obsolete “enter” line the import went well.

—–END CERTIFICATE—–
~

Posted in Application Server | Leave a Comment »

How to renew a Certificate in Oracle Wallet Manager

Posted by John Paul van Helvoort on July 2, 2009

Open your Wallet Manager from your commandline using $ORACLE_HOME/bin/owm ( set your DISPLAY to the correct value )

wallet1

Once started open your ewallet.p12 file which most likely can be found at the default location :

/etc/ORACLE/WALLETS/oracle

wallet2

Enter your Wallet Password.

Select the Certificate which will expire.

wallet3

Go to Operations -> Export Certificate Request.

wallet4

Save this file to server in the default location

wallet5

Send the Certificate request to your CA Authority.
When a new certificate is recieved continue by removing the existing user certificate ;

Select the Certificate which will expire and select OPERATIONS -> REMOVE USER CERTIFICATE

wallet6

wallet7

Confirm this with “Yes”

As showed below , your initail request is turning up again and is ready to receive a new certificate.

wallet8

Select Operations – > Import User Certificate

wallet10

wallet11

Select your location

wallet12

Now the result is again an up to date certificate in the Oracle Wallet.

wallet13

Remember , for the certificatie to take effect it is required to restart Oracle depending services like Portal !

Posted in Application Server | Leave a Comment »