Thought I’d post here as I ran into this.
Terraform v0.12.23, azurerm 1.44.0
I could not get Azure to accept a sha256 pfx via TF no matter what encoding tricks I tried. I had to ensure the pfx was TripleDES-Sha1 and encode like this.
ssl_certificate {
data = filebase64("test.pfx")
password = var.cert_pw
name = "test"
}