Rweaked deploy command in order to be able to write the temporary certificate file