In the Using custom domain names with CloudFront recipe, when we ran the URL in a browser using HTTPS, it showed a Not Secure message. In this recipe, we will associate an SSL certificate with our CloudFormation distribution so that we can access the URL through HTTPS. We will also configure automatically the redirection of any calls with an http prefix to a corresponding URL with an https prefix.