Objective

I want to copy the Let’s Encrypt Certificate from my web server to the FortiOS every 60-90 days.  Create the Deep Inspection Certificate and apply it to the policies.  Put the same certificate and all locations in the FortiOS.

I created the API User and received the API Key for the python code.  I created a headers.py file to store the key and pass it to the API.  

headers.py

headers = {'Authorization': 'Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'}