浏览代码

Change cert name

Bob Mottram 10 年前
父节点
当前提交
76da2f9909
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/freedombone-clientcert

+ 2
- 2
src/freedombone-clientcert 查看文件

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