The below task will fail to upload a VPN remote certificate. No error is produced and the resulting entry under config vpn certificate remote is created but it is lacking the "remote" pem key. additionally the certificate does not show in the GUI under system> Certificates
If the following is ran in the FortiOS CLI the cert is created properly.
config vpn certificate remote
edit "IDP-Cert"
set remote "paste in PEM format Cert"
set range global
end
It does not matter if the content of {{ idp_cert }} is read in from a file or pasted directly in as a string. Both LF and CLRF have been tried with no luck.
I can reproduce the issue from my side, and it's a backend-related bug. I will report to the backend team and update you in this thread once there's a fix.
The below task will fail to upload a VPN remote certificate. No error is produced and the resulting entry under config vpn certificate remote is created but it is lacking the "remote" pem key. additionally the certificate does not show in the GUI under system> Certificates
If the following is ran in the FortiOS CLI the cert is created properly.
config vpn certificate remote edit "IDP-Cert" set remote "paste in PEM format Cert" set range global end
It does not matter if the content of {{ idp_cert }} is read in from a file or pasted directly in as a string. Both LF and CLRF have been tried with no luck.
ansible version: ansible [core 2.15.2] module version: fortinet.fortios:2.3.1 fortiOS version: 7.2.5