Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Websphere and the fly likes Installing certificate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Installing certificate" Watch "Installing certificate" New topic
Author

Installing certificate

sudharshan tettu
Ranch Hand

Joined: Jul 17, 2006
Posts: 124
Hi
I want to use javapns api to push notification to iPADs from my web application.

This is how its written
Push.payload(payload, keyStore, PASSWORD, ISPRODUCTION, TOKEN1);

is there anyway I can read certificate from the server in my java program? I am using Websphere 7. I have installed the cert on it
How can i make use of it ,instead of packaging the .p12 file in the jar and referencing it in keyStore parameter.
It always throws SSl Handshake error

Is there anyway to interpert what certificate is being sent
Mikalai Zaikin
Ranch Hand

Joined: Jun 04, 2002
Posts: 3213
    
    6
Hi

If you wish to connect vi HTTPS to iPad from WAS, you should export public SSL certificate from WAS and import it in iPad's SSL trust store.

To debug SSL connections between WAS and iPad, please refer this article (section "Collecting data manually")

regards,
MZ


Free SCDJWS 5.0 Study Guide - SCDJWS 5.0 Quiz (How to get SCDJWS 5.0 Quiz)
Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam Study Guide and Quiz
sudharshan tettu
Ranch Hand

Joined: Jul 17, 2006
Posts: 124
Hi mz,
sorry for late reply..But my actuall
sudharshan tettu
Ranch Hand

Joined: Jul 17, 2006
Posts: 124
Hi Mz,
do you know a way where we can read keystore in java class ,which is installed on Websphere
For example infra team installed .p12 file on websphere, I want to read it in my java class to pass it to javapns api which actaully pushes notification to ipads
and this api expects .p12 file as inputstream
Mikalai Zaikin
Ranch Hand

Joined: Jun 04, 2002
Posts: 3213
    
    6
Hi

1) Refer IBM WebSphere infocenter on certificates management
2) Refer keytool documentation on certificate management

For example, here are some details how to export: https://community.emc.com/docs/DOC-2212

The command might look like follows:



HTH,
MZ
 
 
subject: Installing certificate