OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: jbeller on February 13, 2022, 10:57:03 PM

Title: Upload SSL certificate via SCP
Post by: jbeller on February 13, 2022, 10:57:03 PM
Hi,

I have one server which generates Let's Encrypt wildcard certificates using DNS-01.
So now I want to copy the pem file to various Opnsense routers we have out in the field.
(We only have ssh access to these routers).
This is no problem using scp cert.pem router-address:/var/etc/
Then I do ssh router-address /usr/local/etc/rc.restart_webgui which restarts the webgui, however the old certificate is still used.

Any ideas?

John
Title: Re: Upload SSL certificate via SCP
Post by: bartjsmit on February 14, 2022, 07:43:32 AM
I wrote a script for that: https://github.com/bartsmit/distcerts

Bart...