Browse Source

add option keylist 25.10.21:01.24

root 3 years ago
parent
commit
d362556d0f
2 changed files with 11 additions and 4 deletions
  1. 9 2
      autocertbot.sh
  2. 2 2
      certbot.conf

+ 9 - 2
autocertbot.sh

@@ -39,6 +39,7 @@ for ((dmn=0; dmn != ${#domains[@]}; dmn++))
39
     do
39
     do
40
       certbot certonly --preferred-challenges http --standalone -d ${domains[$dmn]};
40
       certbot certonly --preferred-challenges http --standalone -d ${domains[$dmn]};
41
     done
41
     done
42
+makesslkey;
42
 /etc/init.d/haproxy start;
43
 /etc/init.d/haproxy start;
43
 }
44
 }
44
 
45
 
@@ -50,6 +51,11 @@ case "$cmd" in
50
 createCert;
51
 createCert;
51
 ;;
52
 ;;
52
 
53
 
54
+## create cert keys
55
+"--keylist" | "--keylist" )
56
+makesslkey;
57
+;;
58
+
53
 ## update cert
59
 ## update cert
54
 "--update" | "--update" )
60
 "--update" | "--update" )
55
 renew;
61
 renew;
@@ -58,8 +64,9 @@ renew;
58
 ## start defaults
64
 ## start defaults
59
 
65
 
60
 * )
66
 * )
61
-echo "please input pameters: autocertbot.sh --create | --update";
67
+echo "please input pameters: autocertbot.sh --create | --update | --keylist";
62
 echo "autocertbot.sh --create; create new certificate"
68
 echo "autocertbot.sh --create; create new certificate"
63
 echo "autocertbot.sh --update; update certificates;"
69
 echo "autocertbot.sh --update; update certificates;"
70
+echo "autocertbot.sh --keylist; create ssl keylist;"
64
 ;;
71
 ;;
65
-esac
72
+esac

+ 2 - 2
certbot.conf

@@ -1,3 +1,3 @@
1
-adminmail="admin@mydomen.com";
1
+adminmail="admin@mydomain.ru";
2
-domains=( "mydomen.org"
2
+domains=( "mydomain.ru"
3
            );
3
            );