Fixes issue where all certificates were valid.