Catching any exception during certificate parsing