Note: valgrind complains about uninitialized data when UTF8Strings are passed to ASN1_STRING_to_UTF8(), however the result is fine. Accessing the same data by other means does not yield the error, I therefore suspect it a false positive.