title: how to copy SSL certificate to another server via rsync
body: <p>My setup consists of 2 servers - one for mailhost and other for webhost. As webhost has SSL certificates I need those to the mailhost server also (same domain). </p>
  
  <p>Is there a way to safely copy certificate files from local webhost server to local mailhost server using rsync or any other way? And by doing so keeping the keys safe and accessible for dovecot. </p>
  
  <p>I have tried giving sudo privileges to rsync on both ends (sudoers file also modified but still saying "no tty present and no askpass program specified"), also using ssh key but still no success.</p>
  
  <p>What I have to do?</p>