I edited out the invite codes as they are private to your account. Did running the wget command with --no-check-certificate allow you to work around this?
Other options to try would be:
Verify that your Pi system clock is set correctly
Try sudo apt-get install ssl-cert before running the wget command again.
Thanks for your patience while I tested a solution. I see from the screenshots that your issue was not with the initial wget but with the one inside the Cayenne install script.
You should have a folder left over from the failed install with the name myDevices-1.0. In that folder, there is a file named setup.sh. Please replace it with this version that I’ve made for you: Dropbox - setup.sh - Simplify your life
Once the file is replaced, restart the installation with the command sudo ./setup.sh -code InviteCode -v where InviteCode is replaced by the characters after the rpi_ part of the installer that you downloaded. So, for example, if your installer was rpi_abcd1234.sh, you would replace InviteCode with abcd1234.
Let me know if you have any questions or trouble, I suspect this solution will work OK for you.
Thanks. Could you run ls in that folder? it looks like the setup.sh file I shared on Dropbox might not be in the myDevices-1.0 folder. If it is not, try copying it there and trying again.