AKV is very finicky about formatting when it comes to certs and keys. If openssl has added any content (including line breaks and special characters) outside of the -----BEGIN CERTIFICATE-----
and -----END CERTIFICATE-----
marks I would try removing that. If you're using Terraform, I would recommend generating your certs with the azurerm_key_vault_certificate
resource.