Fixes the following panic: panic: interface conversion: interface {} is tls.Certificate, not *tls.Certificate