The "remote certificate is invalid" is most likely caused because you have not configured SharePoint to trust the certificate chain. Any SSL data connection used by your forms will need to have been configured in the Manage Trust of SharePoint Central Administration.
Open the url in the browser, and view the certificate chain. Export the matching root certificate from your test server (it should be under the machine account) and import to the production server.