8

How can I get key stores from IBM Websphere in Spring that is located in Websphere?

Security > SSL certificate and key management > Key stores and certificates

Is it possible to create the bean and use it, or use it as something different?

Can I use it through the JNDI?

BSMP
  • 4,596
  • 8
  • 33
  • 44
J Mas
  • 167
  • 2
  • 14
  • What is it that you want ot do with the keystores? Add keys to them? You could add a custom trust manager to authenticate against your own certificates. – Guenther Aug 23 '16 at 09:13
  • no, I want to get trust store from websphre to use in jetty httpclient, because i need to trust store to connect with one application. – J Mas Aug 23 '16 at 12:46
  • 3
    I don't think there is an easy or supported way to get to the store programmatically. Why don't you export the certificates you need from the WAS store, create a new store and import the certificates into it. Then add this new cert-store to your sources and use it in jetty – Guenther Aug 23 '16 at 13:12

1 Answers1

2

Take a look at the code in this question for accessing a KeyStore programmatically and using it from httpclient

Apache HttpClient use own SSL-certificates

Community
  • 1
  • 1
Jonah Benton
  • 3,598
  • 1
  • 16
  • 27