File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Installing certificate

 
sudharshan tettu
Ranch Hand
Posts: 126
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3329
8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
sudharshan tettu
Ranch Hand
Posts: 126
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi mz,
sorry for late reply..But my actuall
 
sudharshan tettu
Ranch Hand
Posts: 126
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3329
8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic