Keywords: Elasticsearch - Google Cloud Platform - Technical issue - Secure Connections (SSL/HTTPS)
Here is the setup:
Firebase-A database of users for our website
Elasticsearch - Instance is on Google Cloud and connects to and syncs with Firebase to provide actual complex search capabilities for our database of users.
GoDaddy - The website is hosted here currently. GoDaddy has a VERY expensive top level SSL Certificate for our entire domain installed on it. So everything with *.mydomain.com is covered under my SSL Cert.
Backgroud: We have a mobile app that has no problem running and using all of the above. It works just fine on Android and iOS to pull search results from Elasticsearch and Firebase. It's great. However, we are also deploying this app as a PWA (or website if you aren't familiar with PWAs).
Problem: The PWA (or website) is throwing an error when it tries to connect to the Elasticsearch instance on Google Cloud. It was originally using http protocol in the apps, but now under the web version, it requires an https protocol connection. I have changed it to https://xxx.xxx.xxx.xxx/elasticsearchinstance/ in the code but when you run it, it throws an error that the Google Cloud server can't be trusted because it doesn't have a valid certificate.
This is a fatal error and disables the web app's core functionality from working.
1) Whats the best and most simple way to set this all up so it will work easily?
2) Given the current setup, how do I get the call to the Google Cloud server to go through without returning the bad SSL error?
3) If necessary, how do I configure the Elasticsearch instance on Google Cloud to be a trusted SSL cert site?
Thank you in advance for any help