chenxiccc / AutoUpdateEsxiCert

10 stars 6 forks source link

留存一个版本 #2

Open zhaxg opened 1 year ago

zhaxg commented 1 year ago

!/bin/sh

if openssl x509 -in /etc/vmware/ssl/rui.crt -checkend 86400 |grep "not" then echo "Certificate is good for another day!" else echo "Certificate has expired or will do so within 24 hours!" scp zhaxg@192.168.132.1:/koolshare/acme/.rv.com.cn/fullchain.cer /etc/vmware/ssl/rui.crt scp zhaxg@192.168.132.1:/koolshare/acme/.rv.com.cn/*.rv.com.cn.key /etc/vmware/ssl/rui.key /etc/init.d/hostd restart /etc/init.d/vpxa restart fi

chenxiccc commented 1 year ago

这个脚本是好几年前写的了,都已经忘了原理了。 你的这段脚本是可以完全替换我的这个脚本的,是吗?