Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1521

AWS EC2 Spring Boot Deployment - SSL/HTTPS Error after Configuring Route 53, ACM, and GoDaddy

$
0
0

I have deployed a Spring Boot application on an AWS EC2 instance, and I’m trying to access it via a custom domain I purchased from GoDaddy. However, I am encountering an issue when trying to connect via HTTPS.

Here’s what I’ve done so far:

  1. EC2 Setup: I’ve successfully deployed my Spring Boot application on an EC2 instance. The application works fine when I access it directly via the public IP over HTTP.

  2. Domain and DNS Configuration:

  • I purchased a domain through GoDaddy.
  • In GoDaddy, I changed the name servers to point to AWS Route 53.
  • I created a hosted zone in Route 53 for my domain.
  • I added an A record in Route 53, pointing to the public IP address of my EC2 instance.
  1. SSL/ACM Configuration:
  • I registered an SSL certificate using AWS ACM (Amazon Certificate Manager) for my domain.
  • The certificate was issued successfully, and I’ve verified that the domain is properly linked.
  1. Security Groups:
  • I have updated my EC2 security group to allow inbound traffic on port 443 (HTTPS).
  • Port 80 (HTTP) is also allowed.

I expected my application to be accessible via HTTPS, but when I try to access my application using the domain (e.g., https://api.mydomain.com) in Postman or a browser, I get the following error in Postman:

Copy codeError: connect ECONNREFUSED 13.49.000.000:443

Here’s what I’ve tried so far:

  • Verified that the EC2 instance is running and accessible via HTTP (port 8080).
  • Double-checked the security group rules to ensure HTTPS traffic is allowed.
  • Ensured the domain points correctly to the EC2 instance using Route 53.
  • From my understanding, the issue could be related to SSL or the configuration of port 443.

Viewing all articles
Browse latest Browse all 1521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>