How to generate google cloud SSL certificate in Nginx server - magento

I am new in google cloud server and I don't understand how can I generate a new SSL if they create a domain in their name. When I create a new VM in Google Cloud, it comes with a Ip domain that's not in my name.
Can anyone help me with this issue?
Thanks Folks

Related

Netlify Unable to provision HTTPS cert for my website

I had my client migrate his domain from GoDaddy to Netlify by updating his DNS records. When I attempt to provision an HTTPS cert, I get "We could not provision a Let’s Encrypt certificate for your custom domain."
The domain is www.ifbidtransport.com
These are his DNS records in Godaddy currently:
(The type A record's name has been corrected to just "#")
What can I do to resolve this? I am happy to provide any info I missed; I'm a bit of a noob at server stuff.
Thank you!

REST API over https in Google Compute Engine

Does anyone know how to easily setup https for a rest api in google compute engine ? I have currently a static ip and the api works over http but in the browser when I call it I get mixed content error because the client is server over https (firebase hosting)
Is it possible to setup https with only a static ip (and not a domain name) ?
-Jani
Is it possible to setup https with only a static ip (and not a domain
name) ?
Yes, it is possible, but since 2016 you cannot purchase an SSL certificate with a public IP address. You can use a self-signed certificate but you will have even more browser issues. Not recommended.
Possible Options:
Use your domain name (or purchase one) and use Let's Encrypt for SSL which is free and is one of your better options.
Use a different service such as Cloud Run, Cloud Functions, Firebase or App Engine which offers SSL and does not require a domain name that you own as you can use Google's endpoint.
Attach a Google Load Balancer in front of your Compute Engine instance and configure a front end with a Google Managed SSL certificate. However, this will require a domain name.
If you do not want to use your own domain name, then option #2 is your only choice.
To setup https for a rest api in google compute engine:
1- You have to buy a domain
2- You have to buy an SSL certificate
3- create a load balance resource in Google Cloud to which I assign the domain and the certificate
4- You can install the certificate to the server directly
If you want to use https over IP instead of domain, please follow click here

Static website on GCP over HTTPS not working

I have a .dev domain that requires the website to be hosted using HTTPS.
I am hosting a static website on GCP. For the HTTPS Certificate, I've created one using Letsencrypt and also tried using GCP generated Cert.
I am using a Load-Balancer setup to use the HTTPS cert and serve the static website out of Storage bucket.
However when I go to my site I am told it is not secure. I am currently using GCP generated Cert, waited 12 hours and I get the following error.
How can I fix this so that I don't see it, nor need to add an exception. In this case I am even unable to add an exception with a .dev domain.
Also I have a follow up question. How can I force all HTTP traffic to use HTTPS using the Load-Balancer?
I got this working by doing the following:
Change Load-balancer IP from ephemeral to static.
Add A record of Load-balancer IP to DNS record.
Side note: if you got a Static website working with HTTP, you will also need to change the CNAME entry pointing to c.storage.googleapis.com. to an A record with the IP record of the Load-balancer.

How to resolve the domain name I created on domain.com in alibaba cloud SAS?

I have created a SAS in Alibaba cloud with ghost template as the image for SAS. I have also created a domain name on domain.com and now I am trying to configure the domain name to the ghost app running on SAS. But when I add the domain name the Resolution Status for this domain still shows as Unresolved. The below error message is displayed on the top of the console.
Domain name, which uses Alibaba Cloud DNS, can be resolved here directly. Other domain should be resolved manually with corresponding DNS service provider.
I have also added the domain name on Alibaba Cloud DNS so I am not sure why this is still not getting resolved. Any help will be much appreciated.
Contact your registrar to establish an A record that maps your domain name to the IP address of Alibaba Cloud SAS (Simple Application Server).
Refer:
https://www.alibabacloud.com/help/doc-detail/59080.htm

Access REST API on Windows Azure Virtual Machine via IP

I currently have a SQL Database and REST API residing on an in house development server. When on the premises my Mac uses a Reverse Proxy (in Apache) to connect and use the REST API on the in house development server. This is to avoid CORS issues. The reverse proxy looks like the following:
ProxyPass /api/ http://192.168.1.250:80/
I wish to move the in house SQL Database and REST API to a Windows Azure Virtual Machine.
Is it possible to do this/is this a viable solution to accessing the REST API remotely? When publishing a website in IIS on a Windows Azure VM access is allowed via a cloudapp.net domain. Is it possible to access the site via an IP address?
I have looked into setting up a VM with a static IP but I am unsure if this would actually solve the above problem - so before spending any more time on this it would be great if someone better versed in this area could chime in!
Any help and guidance is greatly appreciated.
Thanks,
Rich

Resources