Script request to import FortiGate certificate into trusted root

hi, i have tried the current script but it is giving me error, please help
image

Hi @doreenmolly ,

Our script developers tried it in our environment and it was working well.
Can you please share the code and certificate you used in the script so that we can check?

Kind Regards,
PremJK

Fortinet_CA_SSL.cer (1.4 KB)

this is my certificate

my code, i only added the file path and the certificate name

Hi @doreenmolly ,

You can’t directly run a file from the UNC path, please copy it to a local machine first and provide the address path from the local machine.

We can modify the script to download from an online storage link provided if needed.

Kind Regards,
PremJK