Fix SSLCertificates::ConvertDER

Use temporary buffer according to https://www.openssl.org/docs/crypto/d2i_X509.html#WARNINGS to avoid SEGFAULT at OPENSSL_free.