use tee to redirect stream to file
Merge pull request #47 from asarturas/feature/no-permissions-to-create-selfsigned-magento-key-file

use tee when saving self signed magento certificates