Add needsPeerVerification function to check if peer cert should be verified