Unknown certificate type segfault patch