Add support to use customized keystore