[Issue #2083] Fixing crash when attempting to evaluate invalid certificate

Adding AF_Require macro