Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fortios_vpn_certificate_remote fails to properly upload certificate #264

Open
brandonfhall opened this issue Aug 14, 2023 · 1 comment
Open

Comments

@brandonfhall
Copy link

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

  • name: Upload certificates for SAML
    fortinet.fortios.fortios_vpn_certificate_remote:
    state: "present"
    enable_log: "true"
    vpn_certificate_remote: {
    name: "IDP-Cert",
    range: "global",
    source: "user",
    remote: "{{ idp_cert }}"
    }

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
Copy link

JieX19 commented Aug 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants