Problem accessing trust store

Thanks @TimV for your reply here ElasticsearchException: could not initialize mac.

Replacing my java.security file with the default values fixed the issue. I had bouncy castle security provider configured in my server.