Only set the name string in one place, keeping a length of the name type to copy. Also only move cert data index once. Reset certificate extension policy number/count in case of malicious cert with multiple policy extensions.
SHOW_CERTS
OPENSSL_EXTRA_X509_SMALL
OPENSSL_EXTRA
STM32_HASH