This serverless application enables you to configure your Application Load Balancer to automatically approve SSLMate certificates for domains that are pointed at your load balancer. This lets you automatically issue and renew certificates for these domains without any user interaction. Learn more about SSLMate's HTTP approval.
-
Deploy the application:
-
Visit https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:485511610825:applications~sslmate-http-approval and click Deploy.
-
Select the AWS region in which your ALB is located.
-
Under "Application Settings", enter the URL of your SSLMate HTTP Approval Proxy. You can find this URL on your SSLMate account's API credentials page. The URL looks like
https://3.http-approval.sslmate.com
. -
Click Deploy.
-
-
Create a Target Group for the application:
-
Open the Target Groups page under your EC2 Dashboard and click Create target group.
-
Enter the target group name
sslmate-http-approval
. -
Select the Lambda function target type.
-
Select the newly-created Lambda function (the name looks like
aws-serverless-repository-sslm-sslmatehttpapproval-1VY7IG21WDOEM
). -
Select the
$LATEST
version. -
Click Create.
-
-
Create forwarding rules for
/.well-known/acme-challenge/
and/.well-known/pki-validation/
:-
Open the Load Balancers page under your EC2 Dashboard, select your ALB, click the Listeners tab, and then click
View/edit rules
under the port 80 listener. -
Add the following two rules:
- If Path is
/.well-known/acme-challenge/*
, then Forward tosslmate-http-approval
. - If Path is
/.well-known/pki-validation/*
, then Forward tosslmate-http-approval
.
- If Path is
-
Click Save.
-
-
Test that your integration is correctly configured using the HTTP approval test tool.