fortinet-ansible-dev / ansible-galaxy-fortios-collection

GNU General Public License v3.0
84 stars 48 forks source link

fortios_vpn_certificate_remote fails to properly upload certificate #264

Open brandonfhall opened 1 year ago

brandonfhall commented 1 year ago

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

JieX19 commented 1 year ago

Hi @brandonfhall,

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.