|
@@ -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
|