Cobra Forum

Plesk Panel => system admin => Topic started by: Administrator on Jan 01, 2023, 08:28 AM

Title: Use a Wildcard Let's Encrypt Certificate with Vultr Load Balancer
Post by: Administrator on Jan 01, 2023, 08:28 AM
Introduction

Let's Encrypt is an automated, open certificate authority that offers free TLS/SSL certificates for the public's benefit. The service is provided by the Internet Security Research Group (ISRG). This tutorial describes how to install a wildcard Let's Encrypt SSL certificate using certbot on a Vultr Load Balancer.

Overview

The high-level steps for this tutorial are:


You will need a UNIX-like operating system to install certbot.

1. Install certbot

Install certbot according to the instructions for your platform.

2. Request Wildcard Certificate

Run certbot with the certonly and --manual options. Replace example.com with your domain. The domain is listed twice, once for the bare domain and once for the wildcard. If you are not using the bare domain URL (https://example.com), you can omit that value and only request the wildcard.

Quote# certbot certonly --manual -d *.example.com -d example.com -m admin@example.com --agree-tos

Press Y or N + ENTER to share your email address with the EFF.

QuoteWould you be willing to share your email address ...

(Y)es/(N)o: Y

Press Y + ENTER to verify you agree to have your IP address logged.

QuoteAre you OK with your IP being logged?

(Y)es/(N)o: Y

The certbot wizard will print instructions to add a TXT record to your domain's DNS. For example:

Quote- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Please deploy a DNS TXT record under the name

_acme-challenge.example.com with the following value:



U5Y4xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxN914



Before continuing, verify the record is deployed.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Continue

The certbot wizard will pause at this point. Do not press ENTER until you've completed the DNS steps below.

Use a web browser to:


Test that the TXT record is propagated correctly. Popular ways to test the TXT record include dig and the dnschecker.org website. Replace example.com with your name in these examples:

Quote# dig +short TXT _acme-challenge.example.com

"U5Y4xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxN914"
Quotehttps://dnschecker.org/#TXT/_acme-challenge.example.com
https://pix.cobrasoft.org/images/2023/01/01/DNS-Check318ace4cbabc0cd4.png
[/list]
When you see the correct TXT record in the propagation test, return to the certbot wizard and press ENTER to continue. If the certificate challenge succeeds, certbot will report the location of the new certificate files.

Quote...

Cleaning up challenges



IMPORTANT NOTES:

- Congratulations! Your certificate and chain have been saved at:

/etc/letsencrypt/live/example.com/fullchain.pem

Your key file has been saved at:

/etc/letsencrypt/live/example.com/privkey.pem

3. Install Certificate
https://pix.cobrasoft.org/images/2023/01/01/LoadBalancer1ad8f7a8ad5f9850b.png

4. Test the Certificate

Using a web browser, navigate to your website, and verify the certificate is correct.

https://pix.cobrasoft.org/images/2023/01/01/Cert61ff8731f0718c12.png

Summary

You have completed wildcard SSL installation using certbot. You will need to repeat these steps before the certificate expires every 90 days.

More Information