Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

certificate authentication using java  RSS feed

 
C Kushtawar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need some help regarding how to do secured httppost for transmitting a xml file.

I am able transmit the file without using certificate options but get certificate errors.

I have got the the private key with password,Root certicate,Server certificate.Please tell me how can we use this to transmit the xml file I have.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume that you are talking about a SSL/TLS certificate for a https connection.

You need to set up a client trust store that contains the server's certificate - otherwise the Java client will refuse to establish a secure connection with the server.
See, for example:
Using JAX-WS-based Web Services with SSL: Set Up the Client Truststore and Keystore
Axis2: Accessing Web Service via SSL
keytool.exe
keytool - Key and Certificate Management Tool
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!