SCP a certificate from my web server to FortiOS
I have Let's Encrypt on my Ubuntu Web Server. It generates a certificate with the firewall certificate:
DNS Name: firewall.scsiraidguru.com DNS Name: learningwp.scsiraidguru.com DNS Name: mc.scsiraidguru.com DNS Name: patrickmckenneylandscaping.com DNS Name: scsiraidguru.com DNS Name: www.patrickmckenneylandscaping.com DNS Name: www.scsiraidguru.com
every 60-90 days. I setup SCP account and rsa-ID on the Web Server and Fortinet 61F. I setup a test backup file. It can get a backup from the FortiOS and copy it back to the Web Server. I want to automate the certificate import from the Web Server to FortiOS.
I setup a copy.sh file that will compare the new certificate to the copy in my home cert directory. When it changes, it copies the new pem files into my home cert directory. It then creates a pfx file in the home cert directory. I want to get the FortiOS to import the new certificate from the web server. Create a new deep inspection certificate from it. Change the policies with the new deep inspection certs for the web site. Then, replace the other certificates that need to be updated. I can't use FortiOS Let's Encrypt service. I doesn't work. The DNS record changes break the web server.
