Skip to content

Update resource_certificate_local.go - change private_key from required to optional#393

Open
endmon wants to merge 1 commit intofortinetdev:mainfrom
endmon:endmon-certificate-local-privatekey
Open

Update resource_certificate_local.go - change private_key from required to optional#393
endmon wants to merge 1 commit intofortinetdev:mainfrom
endmon:endmon-certificate-local-privatekey

Conversation

@endmon
Copy link
Copy Markdown

@endmon endmon commented Sep 29, 2025

To create ACME certificate on multi-vdom installation, the ressource needed is "certificate local" https://community.fortinet.com/t5/FortiGate/Technical-Tip-Creating-ACME-Certificates-via-CLI-on-Multiple/ta-p/285479
instead of "vpn certificate local" on Standalone vdom installation.

But in the ressource "fortios_certificate_local", the attribute private_key is required. The pricate_key is not needed to create ACME certificate (private-key is unset on Fortios when a ACME certificate is created). And in fortios_vpncertificate_local, the attribute private_key is optional .

To get around the problem, I put in a fake private_key, which isn't used anyway when you do ACME.

Update resource_certificate_local.go - change private_key from required to optional
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant