Move certs
This commit is contained in:
parent
58b9b0e919
commit
6677fcb06a
|
@ -145,8 +145,12 @@ openssl pkcs12 -export -in /home/$USERNAME/emailcert/$USERNAME.cer \
|
|||
|
||||
# make an install script
|
||||
echo '#!/bin/bash' > /home/$USERNAME/emailcert/install.sh
|
||||
echo "sudo mv ca-$HOSTNAME.crt /etc/ssl/certs" >> \
|
||||
/home/$USERNAME/emailcert/install.sh
|
||||
echo "sudo mv $USERNAME.crt /etc/ssl/certs" >> \
|
||||
/home/$USERNAME/emailcert/install.sh
|
||||
echo "sudo mv dovecot.crt /etc/ssl/certs" >> \
|
||||
/home/$USERNAME/emailcert/install.sh
|
||||
echo "sudo mv $USERNAME.key /etc/ssl/private" >> \
|
||||
/home/$USERNAME/emailcert/install.sh
|
||||
echo 'exit 0' >> /home/$USERNAME/emailcert/install.sh
|
||||
|
|
Loading…
Reference in New Issue