This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git


The following commit(s) were added to refs/heads/main by this push:
     new 1251617  Script for updating certs on docs (#281)
1251617 is described below

commit 12516178e90f04b03c19cad1d67b40a1c9b34e75
Author: Bryan Call <[email protected]>
AuthorDate: Tue Feb 17 14:44:11 2026 -0800

    Script for updating certs on docs (#281)
---
 bin/update_lets_encrypt_certs | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/bin/update_lets_encrypt_certs b/bin/update_lets_encrypt_certs
new file mode 100755
index 0000000..d39477a
--- /dev/null
+++ b/bin/update_lets_encrypt_certs
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+set -e
+set -x
+
+# Update the certs
+certbot renew -w /home/docs
+
+# Backup the existing certs
+BACKUP_DIR=backup_$(date +%Y_%m_%d-%H:%M)
+cd /opt/ats/etc/trafficserver/certs/
+echo "Backup dir: $BACKUP_DIR"
+mkdir $BACKUP_DIR
+cp -p *.pem $BACKUP_DIR
+
+# Copy over the new certs
+cp -pL /etc/letsencrypt/live/ci.trafficserver.apache.org/* .
+chown nobody:nogroup *.pem
+chmod 400 *.pem
+
+# Restart ATS
+systemctl restart trafficserver

Reply via email to