2023-05-07 21:03:21 +02:00
|
|
|
#!/bin/bash
|
|
|
|
declare fqdn="${1:?}"
|
|
|
|
|
|
|
|
fwconsole certificates --import
|
|
|
|
fwconsole certificates --updateall
|
|
|
|
|
|
|
|
for certfile in pem key crt; do
|
|
|
|
rsync -av --itemize-changes {'/etc/asterisk/keys/'"${fqdn}",'/etc/httpd/pki/webserver'}'.'"${certfile}"
|
|
|
|
done
|
2023-05-07 21:04:08 +02:00
|
|
|
|
|
|
|
fwconsole reload
|
|
|
|
systemctl reload httpd
|