Fix DigestMethod lookup bug.

@jasonpvp 
Would it be worth it to add a test for this kind of cert validating with no errors at all? It makes sense that you wouldn't get as far as a "Key validation error" without getting the correct digest method first, so maybe not necessary.