acme: make certificates use .crt as the extension
authorGlen Huang <i@glenhuang.com>
Thu, 17 Nov 2022 16:00:53 +0000 (00:00 +0800)
committerGlen Huang <i@glenhuang.com>
Thu, 17 Nov 2022 16:18:19 +0000 (00:18 +0800)
Signed-off-by: Glen Huang <i@glenhuang.com>
net/acme-acmesh/files/hook.sh

index e736dc5996414e77cc4195fd984913457af5eee3..89c61a58ece0a6bfa4f9efad8035c17dd22e8c36 100644 (file)
@@ -46,7 +46,8 @@ get)
                        case $status in
                        0)
                                $NOTIFY renewed
-                               exit;;
+                               exit
+                               ;;
                        2)
                                # renew skipped, ignore.
                                exit
@@ -109,10 +110,10 @@ get)
 
        case $status in
        0)
-               ln -s "$domain_dir/$main_domain.cer" /etc/ssl/acme
+               ln -s "$domain_dir/$main_domain.cer" "/etc/ssl/acme/$main_domain.crt"
                ln -s "$domain_dir/$main_domain.key" /etc/ssl/acme
-               ln -s "$domain_dir/fullchain.cer" "/etc/ssl/acme/$main_domain.fullchain.cer"
-               ln -s "$domain_dir/ca.cer" "/etc/ssl/acme/$main_domain.chain.cer"
+               ln -s "$domain_dir/fullchain.cer" "/etc/ssl/acme/$main_domain.fullchain.crt"
+               ln -s "$domain_dir/ca.cer" "/etc/ssl/acme/$main_domain.chain.crt"
                $NOTIFY issued
                ;;
        *)