For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

AndrewZew's avatar
AndrewZew
Icon for Nimbostratus rankNimbostratus
Mar 26, 2025

Terraform volterra problem

Hi Community,

I need some help:

I have a local generated certificate.pfx file and a password.

Where is the problem?

 

locals {
  certificate_content = filebase64(var.certificate_file)
  password_content = base64encode(var.certificate_password)

  password_string_format = "string:///${local.password_content}"

  string_format = "string:///${local.certificate_content}"
}

resource "volterra_certificate" "certificate-test" {
  name        = "certificate-test-03-26-25"
  namespace   = "tf-dev"
  description = "Simple Description"
  disable     = true

  private_key {
    clear_secret_info {
      url = local.password_string_format
    }
  }

  certificate_url       = local.string_format
  use_system_defaults   = true
  disable_ocsp_stapling = true
  
}

volterra_certificate.certificate-test: Creating...

│ Error: error creating Certificate: Creating object: Post "/public/namespaces/tf-dev/certificates": unsupported protocol scheme ""
│ 
│   with volterra_certificate.certificate-test,
│   on certificate.tf line 10, in resource "volterra_certificate" "certificate-test":
│   10: resource "volterra_certificate" "certificate-test" {

2 Replies

  • I received help from some community colleagues via private message. Thank you!

  • From what I see without testing it was probably the  "certificate-test-03-26-25" or the encoding as maybe the cert was already base64. It is good to share with the community what the issue was.