Skip to content

Dynamically modify truststore at runtime #98

Answered by phax
MakakWasTaken asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, try this for line 4 above (no password needed):

keystore.load(null, null);

Setting the truststore dynamically is possible in phase4, it just matters if you need it for sending and receiving, and if receiving is affected, how you enable the dynamic truststore.

For sending (assuming you use the builder), you need to set a different cryptoFactory using an instance of AS4CryptoFactoryInMemoryKeyStore where you pass in keystore and truststore dyanmically. The same can be done for receiving as well, just that the point for interception is a bit tricky ;-)

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
7 replies
@phax
Comment options

@MakakWasTaken
Comment options

@phax
Comment options

@MakakWasTaken
Comment options

@phax
Comment options

Answer selected by MakakWasTaken
Comment options

You must be logged in to vote
1 reply
@phax
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants