openssl req -new -newkey rsa:2048 -nodes -keyout server-cert.key -out server-cert-sign-req.csr
# Country Name (2 letter code) [AU]:US
# State or Province Name (full name) [Some-State]:California
# Locality Name (eg, city) []:
# Organization Name (eg, company) [Internet Widgits Pty Ltd]:Flutterby Labs, Inc.
# Organizational Unit Name (eg, section) []:
# Common Name (eg, YOUR name) []:www.dogo.co
# Email Address []:[email protected]
#
# Please enter the following 'extra' attributes
# to be sent with your certificate request
# A challenge password []: <LEAVE THIS BLANK>
# An optional company name []: <LEAVE THIS BLANK>
- Upload server-cert-sign-req.csr to digicert as type "OTHER"
- Now wait for Digicert to tell you your cert is ready...
- Download certificate from digicert: "Other format" -> "A single .pem file containing all the certs"
In EC2 console:
- Create an AWS load balancer in ec2 panel
-
- Make a name and add Load Balancer Protocl HTTPS -> HTTP
-
- Upload the SSL Certificate. (Private key is
server-cert.key
, Public Key Certificate is<file-containing-all-the-certs>.pem
)
- Upload the SSL Certificate. (Private key is
-
- Use default config (ELBSample-ELBDefaultNegotiationPolicy)
-
In Route 53 console:
- Create an A record type point its Alias Target to the elastic load balancer created.
SSL certificates can be opaque and annoying. Give yourself a pat on the back (even if it's not working yet) and take a break.
First, Genereate & Upload CSR + Download new cert just like before. Then in aws console:
- Go to ec2 -> Load Balancers -> Select your current load balancer
- In details panel at bottom, select "Listeners" tab -> SSL Certificate -> (Change) link
- Upload the new SSL Certificate (Private key is
server-cert.key
, Public Key Certificate is<file-containing-all-the-certs>.pem
)
Cheers!
thanks alot