Access the site via HTTPS - AWS

Asked

Viewed 49 times

2

I’m having doubts to access the site using the HTTPS protocol for the domains in my hosting.

I went up an instance Linux T2.micro zone São Paulo (Amazon ECS). I have done the procedure to acquire the certificate (ACM) and its status is 'Issued'. I also set up Cloudfront and its status is 'Deployed' and enabled Apache2 SSL (sudo a2ensite default-ssl). However, when accessing the site using HTTPS, says that the site is not safe, gets HTTPS crossed out in red.

In this same instance I own other websites (different domains) and would like to enable HTTPS for them as well. What’s missing or what am I doing wrong? Most of the tutorials I found are superficial and have no step-by-step details...

Hugs to all!

2 answers

1

I would recommend that you use Letsencrypt or Certbot to generate HTTPS certificates. For you to put the certificate into operation, you must use depending on your site, Apache or Nginx to be able to properly configure the certificates. Remember, that all settings, since you are using a micro instance, should be performed in the terminal with sudo command preferably.

  • Hello Matheus, I appreciate your response! I would like to understand the reason or what I’m doing wrong, because the AWS certificate the site already has, but continues to appear as "not safe".

  • but that your certificate is right aws? You have not deployed on the server? Can give more details?

  • It’s straight from AWS. I didn’t implement it on the server. My steps were: Create and enable/verify a certificate in AWS Certificate Manager, enable SSL access on the server by the 'a2ensite default-ssl' command, create a 'distribution' in Cloudfront and finally enable Loadbalancer on my server instance. Done these steps, currently the site enters with HTTPS, but the symbol turns red (HTTPS in browser).

0


After several attempts and reconfigurations, Professor Francisco Edilton (Cloud Architect) discovered the mistake! Failed to make the domain appointment to the Load Balancer. Replaces the IP appointment of the instance to the Load Balancer and success!

I thank you all!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.