Bobcares

DigitalOcean load balancer SSL – Set it up with ease

by | Feb 5, 2020

Are you trying to set up a load balancer in DigitalOcean with SSL? 

Setting up an SSL for the load balancer will decrypt the request before sending it to the droplet.

At Bobcares, we often get requests to set up a Load Balancer with SSL as a part of our DigitalOcean Managed Services.

Today, let’s see how our Support Engineers setup the Load Balancing with SSL.

DigitalOcean Load Balancer SSL

Load Balancer helps us to distribute network traffic to multiple servers.

In load Balancing web traffic encryption, there are two main configurations.

i) SSL termination: It decrypts the request at the load balancer and sends it to the Droplet. The load balancer uses SSL termination by default.

ii) SSL passthrough: It sends encrypted SSL requests directly to Droplet.

Let’s discuss how our Support Engineers set up the load balancing with SSL.

 

Add an SSL certificate for Load Balancer

Recently, one customer contacted us to set up a load balancer for his two Droplets. Also, he wanted to secure the connection to his droplets at the load balancer. The best option here was to set up LoadBalancer using SSL. Now, let’s discuss how our Support Engineers create and add the SSL certificate.

First, we login to the DigitalOcean Control Panel.

In the left pane, we click on Networking.

Then we click on the Load Balancers tab and click on Create Load Balancers.

In Choose a datacenter region, we choose the region where the Droplet is created.

Then in Forwarding rules sub-section, we select as HTTPS or HTTPS2 in Load Balancer Protocol.

After that, we enter Port 443 for the Protocol. Now we click on the certificate, now a drop-down appears.

If a certificate is already added the certificate will display then we click on the certificate. Else we click on + New certificate.

Now a window appears. Thus we can add a Let’s Encrypt SSL certificate or SSL certificate from the third party as shown below in the screenshot.

DigitalOcean load balancer SSL

Now, let’s discuss the two options available to add the certificate.

 

1. Bring your own certificate

We click on Bring your own certificate tab, Now we manually enter the details of the certificate that is available.

Now we enter the name for the certificate. We suggest giving the domain name to identify the certificate.

In Certificate, we paste the public key of the SSL certificate.

Also, we paste the Private key in the next column.

Next, we paste the CA certificate in the certificate chain.

Then we click on Save SSL Certificate. Finally, click on Save to apply the new changes.

 

2. Use Let’s Encrypt

If a certificate is not available you can choose Let’s Encrypt free SSL. But to use Let’s Encrypt, the DNS needs to be with DigitalOcean.

The best option is to change the nameserver of the domain to DigitalOcean by contacting the registrar.

When we click on Search for a domain on DigitalOcean the domain will be listed. Thus we select the domain and we give the name for the certificate.

If the domain is not added then we click on + Add new domain.

Now a warning appears to change the nameserver. Here, we click on Yes, continue.

We enter the domain name and enter the subdomain if available.

Then we add the name of the certificate.

We click on the Generate certificate.

 

Use secure connection

Here, the customer was having an eCommerce website. He purchased an SSL certificate from the SSL vendor and provided us the details thus we used Bring your own certificate option.

After adding the certificate we Force the connection to HTTPS.

Thus in Advanced settings, we check Redirect HTTP to HTTPS.

Finally, we click on Create Load Balancer and add the Droplets.

 

[Need any assistance with load balancing? – We’ll help you]

 

Conclusion

In short, we’ve discussed DigitalOcean supports adding an SSL certificate using Let’s Encrypt or manually. Also, we saw how our Support Engineers add an SSL certificate for a load balancer in DigitalOcean.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF