spring-boot-hello

Pre-requisites:

  • Build and Run springboot application in server

Build and Run Application

Build and Run

Create ALB under aws with two target group one with 80

image

Create ALB

image

Create Self Signed Certificate

A self-signed SSL certificate is an SSL Certificate that is issued by the person creating it rather than a trusted certificate authority. This can be good for testing environments.

Step 1: Generate a CA private key

openssl genrsa -out ca.key 2048

Step 2: Create a self-signed certificate, valid for 365 days

openssl req -x509 \
  -new -nodes  \
  -days 365 \
  -key ca.key \
  -out ca.crt \
  -subj "/CN=*.us-east-1.elb.amazonaws.com"

Open AWS ACM --> Import certificate

  • Please copy contents of ca.crt to “Certificate body” and contents of ca.key to “Certificate private key”.
  • Please keep “Certificate chain” empty and click “Next” button

image

  • Certificate creation

image

Attach Listeners to port 443 and ACM

image

Check Application output

image