Helper function to get the CA cert