terraform-provider-fortios icon indicating copy to clipboard operation
terraform-provider-fortios copied to clipboard

fortios_vpncertificate_local forces privatekey usage

Open tiagoasousa opened this issue 2 years ago • 2 comments

Any reason for the provider to enforce private key where the api does not ? this blocks creation of letsencrypt certs

via api it works well: curl -X POST "https://fg-address/api/v2/monitor/vpn-certificate/local/import?access_token=TOKEN" -H "accept: application/json" -H "Content-Type: application/json" -d "{"acme_ca_url": "https://acme-v02.api.letsencrypt.org/directory","acme_domain": "url","acme_email": "email","certname": "arroz","scope": "global","type": "automated"}"

but provider enforces privatekey so it breaks. can it be updated?

tiagoasousa avatar Mar 14 '22 23:03 tiagoasousa

Hi @tiagoasousa,

Thank you for raising this issue. Team are working on this issue. We will let you know once it's resolved.

By the way, the REST API for resource fortios_vpncertificate_local is /api/v2/cmdb/vpn.certificate/local, not /api/v2/monitor/vpn-certificate/local/import.

Thanks, Xing

lix-fortinet avatar Mar 22 '22 00:03 lix-fortinet

Hi @tiagoasousa,

The latest version of FortiOS Terraform provider v1.14.1 fixed this issue. Please switch to v1.14.1 and try it again.

Please let me know if you have any questions.

Thanks, Xing

lix-fortinet avatar Apr 28 '22 22:04 lix-fortinet

Hi @tiagoasousa,

We will close this issue since it has been fixed. Feel free to open a new issue if you have any other questions.

Thanks, Xing

lix-fortinet avatar Oct 10 '22 20:10 lix-fortinet