Venafi / terraform-provider-venafi

HashiCorp Terraform provider that uses Venafi to streamline machine identity (certificate and key) acquisition.
https://www.terraform.io/docs/providers/venafi/
Mozilla Public License 2.0
16 stars 20 forks source link

Call to function "file" failed: contents of "./file/cabundle.pem" are not valid UTF-8 #97

Closed muralikrishnarokkam closed 1 year ago

muralikrishnarokkam commented 1 year ago

Having an issue using terraform venafi, In that trust_bundle unable to use file function in terraform got an below error.

Call to function "file" failed: contents of "./file/cabundle.pem" are not valid UTF-8

EduardoVV commented 1 year ago

Hi @muralikrishnarokkam , thanks for raising this issue.

Can you provide more information?

Can you also verifiy using openssl command to see if the PEM bundle contains any errors? openssl verify -verbose ./file/cabundle.pem

And lastly, are you by any chance using a binary encoded PEM bundle instead of ascii armor?

luispresuelVenafi commented 1 year ago

Hi there @muralikrishnarokkam ,

Did what @EduardoVV comment solved your issue?

luispresuelVenafi commented 1 year ago

I'm closing this issue so developers can focus on other work. We can re-open it if needed