Catch-and-handle certs that don't parse correctly

JAVA STYLE.

This code is very bad. I know. I just need to commit it for now. :P
Debug output for when syncing