Difficulties importing certificate #360
Unanswered
camielwnzl
asked this question in
Q&A
Replies: 1 comment
-
I think behavior of the Looking at the Terraform docs, they advocate for providers to use For now if it's possible, use PEM format instead since that data is UTF-8 and can be read by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm attempting to import a certificate and key into Panorama using the:
resource "panos_certificate_import" "cert" {
name = "sample_cert
template = var.panos_device_template
pkcs12 {
certificate = file("${path.module}/certs/cert.pfx")
passphrase = "changeit"
}
lifecycle {
create_before_destroy = true
}
}
However - i'm getting: Call to function "file" failed: contents of "./certs/cert.pfx" are not valid UTF-8; use the filebase64 function to obtain the Base64 encoded
│ contents or the other file functions (e.g. filemd5, filesha256) to obtain file hashing results instead.
Using filebase64 I get: Error: Import of sample_cert_pem failed. Failed to extract certificate
I'm able to import the certificate and key using the web UI.
Are you able to assist ?
Beta Was this translation helpful? Give feedback.
All reactions