|
|
@ -9,10 +9,11 @@ |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
if [ $1 == "{{ cert }}" ]; then |
|
|
|
if [ $1 == "{{ cert }}" ]; then |
|
|
|
cp /var/lib/dehydrated/certificates/certs/{{ cert }}/fullchain.pem /etc/rabbitmq/ssl/cert.pem |
|
|
|
cp /var/lib/dehydrated/certificates/certs/{{ cert }}/chain.pem /etc/rabbitmq/ssl/chain.pem |
|
|
|
|
|
|
|
cp /var/lib/dehydrated/certificates/certs/{{ cert }}/cert.pem /etc/rabbitmq/ssl/cert.pem |
|
|
|
cp /var/lib/dehydrated/certificates/certs/{{ cert }}/privkey.pem /etc/rabbitmq/ssl/key.pem |
|
|
|
cp /var/lib/dehydrated/certificates/certs/{{ cert }}/privkey.pem /etc/rabbitmq/ssl/key.pem |
|
|
|
chown :rabbitmq /etc/rabbitmq/ssl/key.pem |
|
|
|
chown :rabbitmq /etc/rabbitmq/ssl/key.pem |
|
|
|
chmod 644 /etc/rabbitmq/ssl/cert.pem |
|
|
|
chmod 644 /etc/rabbitmq/ssl/{cert,chain}.pem |
|
|
|
chmod 640 /etc/rabbitmq/ssl/key.pem |
|
|
|
chmod 640 /etc/rabbitmq/ssl/key.pem |
|
|
|
systemctl restart rabbitmq-server |
|
|
|
systemctl restart rabbitmq-server |
|
|
|
fi |
|
|
|
fi |
|
|
|