Ssl_certificate - Application Gateway

Hi,

I would like use SSL on an application gateway but there is a problem with the tag “data”.
My certificate is encrypt with sha256.

I try :
data = “${sha256(“cert.pfx”)}”

and

data = “cert.pfx”

Anyone have an idea ?

I use: data = “${base64encode(file(“cert.pfx”))}” which works for me.

Maybe try: “${base64encode(sha256(file(“cert.pfx”)))}”

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"

}

Thank you @ericnelson. Been banging my head on this one all afternoon until I came across your post. Changed to TripleDES-Sha1 and all is working.