-3

I am using System.setProperty() to set javax.ssl.truststore and keystore values at runtime. But when I set it again with different values inside the code, the changes are not reflected. Any help would be appreciated.

Eugène Adell
  • 3,089
  • 2
  • 18
  • 34
  • I don't understand the down votes on the question. It is a legitimate one, but on the other side you could provide some code. Help us to help you. – Eugène Adell Jan 05 '18 at 14:50

2 Answers2

0

As you're not giving any code, not easy to answer. What I only can guess is that you forgot to initialize correctly the SSL context after updating the properties. Have a look at SSLContext.init() . This answer may help too.

Eugène Adell
  • 3,089
  • 2
  • 18
  • 34
0

This system property is used in a cached instance. If you want different ssl settings, please use a SSLContext.

TvR
  • 61
  • 3