Using a custom truststore in java as well as the default one [duplicate]
You could use a similar pattern to what I’ve mentioned in a previous answer (for a different problem). Essentially, get hold of the default trust manager, create a second trust manager that uses your own trust store. Wrap them both in a custom trust manager implementation that delegates call to both (falling back on the … Read more