...and then I have a script which uses rsync that uploads the certs to the web server...
#!/bin/sh# PROVIDE: rsync# REQUIRE: NETWORKING. /etc/rc.subr# create target directories if they don't existssh admin@10.4.12.3 mkdir -p /share/Download/Opnsense/confssh admin@10.4.12.3 mkdir -p /share/Download/Opnsense/usr/local/etc/rc.dssh admin@10.4.12.3 mkdir -p /share/Download/Opnsense/usr/local/opnsense/service/conf/actions.d# copy files - never able to get rysnc to create the dirs!rsync -arvh /conf/ admin@10.4.12.3:/share/Download/Opnsense/confrsync -ah /usr/local/etc/rc.d/rsync_backup admin@10.4.12.3:/share/Download/Opnsense/usr/local/etc/rc.drsync -ah /usr/local/etc/rc.d/dpinger_starter admin@10.4.12.3:/share/Download/Opnsense/usr/local/etc/rc.drsync -ah /usr/local/etc/rc.d/ping_check.sh admin@10.4.12.3:/share/Download/Opnsense/usr/local/etc/rc.drsync -ah /usr/local/opnsense/service/conf/actions.d/actions_dpinger.conf admin@10.4.12.3:/share/Download/Opnsense/usr/local/opnsense/service/conf/actions.d/rsync -ah /usr/local/opnsense/service/conf/actions.d/actions_rsync_backup.conf admin@10.4.12.3:/share/Download/Opnsense/usr/local/opnsense/service/conf/actions.d/rsync -ah /usr/local/opnsense/service/conf/actions.d/actions_pingcheck.conf admin@10.4.12.3:/share/Download/Opnsense/usr/local/opnsense/service/conf/actions.d/# copy SSL certs to web serverrsync -ah /var/etc/acme-client/home/*.queens-park.com/*.queens-park.com.key martin@10.4.15.34:/etc/apache2/ssl/rsync -ah /var/etc/acme-client/home/*.queens-park.com/*.queens-park.com.cer martin@10.4.15.34:/etc/apache2/ssl/# now update the qnap - The GUI will show the old cert but the web pages actually use the new one. Have to cat them together first.cat /var/etc/acme-client/home/*.queens-park.com/*.queens-park.com.key /var/etc/acme-client/home/*.queens-park.com/fullchain.cer > '/var/etc/acme-client/home/*.queens-park.com/stunnel.pem'rsync -ah /var/etc/acme-client/home/*.queens-park.com/stunnel.pem admin@10.4.12.3:/etc/stunnel