Issue Description
App Installation Commands Fail For Some Devices:
"The certificate for this server is invalid. You might be connecting to a server that is pretending to be bag.itunes.apple.com which could put your confidential information at risk."
Troubleshooting
Ensure that the time, date and year are set correctly on the impacted devices. If this is incorrectly set, this can cause the device to believe the certificate as expired (and thus 'invalid').
Once the date and time is corrected, attempt the installation again.