download cert for SMTP if EIP did not do it.

includes refactor of common code for download of certificates
and config files.