composer prepare
composer update
the first command will download the certificate and the second will then do the update etc. Even better would be a csript that downloads the certificate before any other command would be executed by composer but I couldn't find one (yet)