Save 10% on any SSL Certificate order on SSL Dragon by using the promo code YOUTUBE10 at checkout - https://www.ssldragon.com/ssl-certifi...
SSL Dragon blog article - https://www.ssldragon.com/how-to/inst...
---------------------------------------------------------------
The commands used in this video:
Fill in [ ] with your variables/file names.
1. yum clean all ; yum repolist ;
2. yum install httpd mod_ssl - y
3. openssl req -new -newkey rsa:2048 -nodes -keyout [yoursite].key -out [example].csr
Optional: Conversion from .crt to .pem using OpenSSL - openssl x509 -in [cert].crt -out [cert].pem
4. vi /etc/httpd/conf.d/ssl.conf
5. systemctl restart httpd
6. systemctl status httpd
7. netstat -tulpn | grep 443
8. aws acm import-certificate --certificate fileb://[example].pem --private-key fileb://[example].key
9. aws iam upload-server-certificate --server-certificate-name [certificate-name] --certificate-body file://[example].pem --private-key file://[example].key
10. aws elbv2 create-load-balancer --name [load-balancer-name] --type network \
--subnet-mappings SubnetId=[subnet-...],AllocationId=[eipalloc-...]
11. aws elbv2 create-target-group --name [target-name] --protocol TCP --port 443 --vpc-id [vpc-...]
12. aws elbv2 register-targets --target-group-arn [target-group-ARN] --targets Id=[target-Id]
13. aws elbv2 create-listener --load-balancer-arn [load-balancer ARN] --protocol TCP --port 443 \
--default-actions Type=forward,TargetGroupArn=[target-group-ARN]
Optional: Check the health of the targets:
aws elbv2 describe-target-health --target-group-arn [target-group-ARN]