Added validation for the trust/key stores.