For anyone else looking, VE1977’s comment below solves it. The exact steps to fix it is:
- Copy [Engine directory]/Engine/Content/Certificates/ThirdParty/cacert.pem to [Project directory]/Content/Certificates/cacert.pem
- In your project settings, under Packaging, add an array item to “Additional Non-Asset Directories to Package”, with the value Certifications
That’s it, no need to do anything in C++. You may need to copy this again when you update engine version.