Fix uninitialized access (random error message) in certificate verification