barracudanetworks / terraform-provider-barracudawaf

Terraform provider to create and manage the resources on Barracuda Web Application Firewall.
https://www.barracuda.com/products/webapplicationfirewall
Mozilla Public License 2.0
5 stars 2 forks source link

Certificate types? #5

Open itprosource opened 1 year ago

itprosource commented 1 year ago

Thanks for building this provider. I want to build a TF resource for a PKCS12 cert, but I cannot figure out what to use in key_type - everything fails. pkcs12, pfx, etc. The only attribute shown in documentation is "pem".

aravindan-acct commented 1 year ago

hi, the provider is based on the REST API version 3.1 which is documented here: https://campus.barracuda.com/product/webapplicationfirewall/api?apiVersion=v3.1#swagger-ui

The signed certificate resource should allow for pkcs12 file uploads. The API for this is https://campus.barracuda.com/product/webapplicationfirewall/api?apiVersion=v3.1#/Signed%20Certificate/post_certificates_signed_certificate_

The terraform code is https://raw.githubusercontent.com/barracudanetworks/terraform-provider-barracudawaf/main/barracudawaf/resource_barracudawaf_signed_certificate.go