[jb] Verify certificate in secure when talking to RM over rest https (ssl)