• Post Reply Bookmark Topic Watch Topic
  • New Topic

URLConnection with TLS1.2 and PFX file  RSS feed

 
Greenhorn
Posts: 10
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to make a connection to a SOAP endpoint in Java. It needs to be secured with TLS1.2.

I have been given a client.pfx file with its password.

I have done some reading and clearly need to either load that file at run-time or (preferably) I can load it into one of the java key management files.

So the big questions are:

What java key management file do I load it into? keystore truststore?

How do I load it?

I did get as far as



Which runs successfuly but not even sure if this is where I want to import it to?

What does the code to then try to establish a connection look like in Java?

Would really appreciate any help on this one.

Thanks

Ali
 
Al Grant
Greenhorn
Posts: 10
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PS: I have also downloaded the server certificate as it is mutual TLS.

Apparently this should go into trusted key store?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!