Bob Mottram 9 anni fa
parent
commit
76da2f9909
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      src/freedombone-clientcert

+ 2
- 2
src/freedombone-clientcert Vedi File

@@ -133,13 +133,13 @@ fi
133 133
 # move the cert to the user's home
134 134
 mkdir /home/$USERNAME/emailcert
135 135
 mv /etc/ssl/certs/$USERNAME.cer /home/$USERNAME/emailcert
136
-cp /etc/ssl/certs/dovecot-ca.crt /home/$USERNAME/emailcert
136
+cp /etc/ssl/certs/ca-$HOSTNAME.crt /home/$USERNAME/emailcert
137 137
 mv /etc/ssl/private/$USERNAME.key /home/$USERNAME/emailcert
138 138
 mv /etc/ssl/certs/$USERNAME.crt /home/$USERNAME/emailcert
139 139
 openssl pkcs12 -export -in /home/$USERNAME/emailcert/$USERNAME.cer \
140 140
         -out /home/$USERNAME/emailcert/$USERNAME.p12 \
141 141
         -inkey /home/$USERNAME/emailcert/$USERNAME.key \
142
-        -certfile /home/$USERNAME/emailcert/dovecot-ca.crt \
142
+        -certfile /home/$USERNAME/emailcert/ca-$HOSTNAME.crt \
143 143
         -password pass:""
144 144
 
145 145
 # make an install script