phax / as2-lib

A generic Java AS2 library, servlet and server
107 stars 43 forks source link

latest certificates from keystore is not fetching when service is running #144

Closed punithdj closed 1 year ago

punithdj commented 1 year ago

Hi Philip,

We have a problem that , when service is running and if I update the key store with new certificates , its not reflecting for incoming messages. Still it fetching from cache memory i.e old certificates and throws certificate not found exception.

phax commented 1 year ago

Yes, that is correct. By default the KeyStore is not reinitialized every time but only on startup. The respective method to do so is CertificateFactory.reinitKeyStore (). Depending on how you initialize your certificateFactory you need to call the method accordingly.

punithdj commented 1 year ago

Thank you Philip :)