Revert cert crash patch

dgraham fixed the problem upstream (negativecode/vines#37). I revert and update develop with the upstream changes!