How to Set up SSL on a Website: Free and Paid Options

Updated:

You want visitors to send a message or buy a download, but your website still opens over HTTP. Adding HTTPS sounds straightforward until the hosting panel offers three certificates and a “Force HTTPS” switch.

The certificate is only part of the job. Old image links, form settings and redirects can leave a site looking secure while something useful stops working.

You can make this change without shutting down your working site. This guide explains which certificate I would choose, how to install it for your hosting setup, and what to test before sending every visitor to HTTPS.

Choose a Free or Paid SSL Certificate

For an ordinary blog, business website, contact form or checkout, I would start with a free certificate managed by the host.

Let’s Encrypt issues free domain-validated certificates. Your provider may charge for installation or management, but that is a separate service from the certificate itself.

Choose A Free Or Paid Ssl Certificate: Ssl Certificates: Identity Checks Vs Encryption; Dv: Domain Control; Ov: Organization Details; Ev: Extensive Organization Checks; Equivalent Encryption; When Algorithms, Key Lengths And Tls Settings Match

“SSL certificate” is the familiar name, so I’ll use it here. Modern HTTPS uses TLS to encrypt traffic in transit and authenticate the server.

Certificates come with different levels of identity checks:

  • Domain validation, or DV, confirms control of the domain.
  • Organization validation, or OV, also checks organization details.
  • Extended validation, or EV, requires more extensive organization checks.

Paying for those checks does not inherently buy stronger encryption. D-Trust’s guide says DV, OV and EV certificates have equivalent encryption properties when algorithms and key lengths match. Free and paid certificates can therefore provide equivalent encryption when the server’s TLS settings also match.

Choose A Free Or Paid Ssl Certificate: Who Installs And Renews Your Ssl Certificate?; Host-Managed Free Ssl; Host Installs And Renews: Confirm Coverage; Self-Managed Let’s Encrypt; You Configure Installation And Automation; Purchased Certificate

Here is how I would compare the practical options:

SetupCertificate CostValidationInstallation ResponsibilityRenewal ResponsibilitySupport
Host-managed free SSLIncluded when your hosting package provides itUsually DVHost installs it after domain verificationHost should renew and deploy it; confirm coverageHosting support
Self-managed Let’s EncryptFree certificateDVYou configure the server and certificate clientYour scheduled automation renews and deploys itOfficial documentation and community help
Purchased certificateIssuer charges for the certificateDV, OV or EV, depending on the productYou, your host or a paid installerDepends on the service; purchase alone does not establish automationIssuer support; server help may cost extra

I would buy OV or EV when verified organization identity is a stated requirement. Otherwise, I would spend money on management help before paying for a different certificate.

Before purchasing anything, confirm that your host accepts external certificates. Compare which domain names each certificate covers, installation help, renewal charges and who fixes a failed deployment. A certificate renewal receipt is not much comfort when the server is still serving the expired one.

Prepare Your Website for HTTPS

First, identify where each part of your website runs:

  • Your hosting provider serves the website.
  • Your DNS provider controls the records that connect your domain to services.
  • A CDN or reverse proxy, such as Cloudflare, receives visitors’ requests and either passes them to your host or serves cached copies of website files.

These can be three different companies. Buying a domain from one company does not mean it hosts your site.

Use the host’s certificate service when available. A managed hosting account needs a different approach from a server you administer yourself.

Prepare Your Website For Https: Https Setup: Dns, Proxy And Hosting Roles; Dns: Finds The Service Address; Visitor; Cdn Or Proxy: Receives Requests And May Serve Cached Files; Host: Runs The Website; Without A Proxy; These Services Can Belong To

Next, list every public hostname that needs HTTPS. Include the main domain, www and any relevant subdomains. A hostname that only redirects still needs a valid certificate for HTTPS requests because the secure connection happens before the redirect.

For a small site, I prefer listing the required names explicitly. A wildcard such as *.trailpaws.example covers first-level subdomains, but it does not cover trailpaws.example or deeper names such as shop.members.trailpaws.example. NGINX documents these certificate-name rules.

Before changing settings:

  1. Back up website files, the database and server configuration.
  2. Record existing site addresses and redirect rules.
  3. Confirm access to hosting controls and a file manager or SSH so you can recover without the website dashboard. SSH lets you securely run commands on the server.
  4. Test important pages, forms, payments and downloads.
Prepare Your Website For Https: What A Wildcard Ssl Certificate Covers; *.Trailpaws.example; Www.trailpaws.example; Covered: First-Level Subdomain; Trailpaws.example; Not Covered By This Wildcard; Shop.members.trailpaws.example; Not Covered: Deeper

Keep the current service running while adding HTTPS. I would handle a hosting move or redesign separately so there is less to untangle if a check fails.

Before switching, save a record of your important pages’ response codes and redirects. You can compare those details after HTTPS is live.

Lead Magnet Cover
FREE WORKSHEET

Free Website Change Workbook

Steal our tracker to check whether your old links work as planned after a site change.
Send My Free Tracker ❯
Instantly delivered to your inbox
Customer Avatar 1
Customer Avatar 2
Customer Avatar 3
Customer Avatar 4
Rated highly by 1,200+ users

Throughout this guide, imagine you run Trail Paws, a dog-friendly hiking blog selling printable trail-packing checklists. It uses WordPress, a contact form and checkout at trailpaws.example. All .example addresses are illustrations; replace them with your real domain in commands and settings.

Install SSL for Your Hosting Setup

Follow the installation route that matches your hosting arrangement. If you already use a CDN or proxy, complete that additional check too.

Activate Your Host’s Managed SSL Service

Open your hosting account and find the certificate controls for the domain. They may be called SSL, HTTPS, Certificates or AutoSSL.

Check whether a valid certificate is already installed. If it is, confirm that it covers every hostname you listed before requesting another.

Activate Your Host’s Managed Ssl Service: Managed Ssl: Activate, Test, Then Redirect; 1. Certificate Issued And Installed; Trailpaws.example; Www.trailpaws.example; 2. Https Pages And Functions Pass; 3. Enable Https Redirects; Confirm Renewal And

When installation is needed:

  1. Select the included managed certificate service.
  2. Add the required hostnames.
  3. Complete the provider’s domain-connection or ownership checks.
  4. Wait until the certificate shows as successfully issued and installed.

For Trail Paws, the request would cover trailpaws.example and www.trailpaws.example, even if one redirects to the other.

Confirm that the service both renews certificates and installs replacements. Leave an optional “Force HTTPS” setting off until the HTTPS pages and essential functions pass the checks below.

If your provider combines certificate activation and redirection, follow its supported process and test the site immediately afterward.

Install Free SSL on a Server You Manage

Use this route only when you have administrative SSH access and manage the web server. A cloud server account, including a DigitalOcean Droplet, does not automatically mean certificate management is included.

Identify your operating system and whether Apache or NGINX serves the site. Then install Certbot, the tool that requests and manages certificates, with the matching web-server plugin using the official Certbot installation instructions.

For the usual HTTP validation method, every requested hostname must reach the correct server on public port 80. HTTPS also needs port 443 open through the relevant firewalls. Check both IPv4 and IPv6 records if your domain uses them.

Wildcard certificates need DNS validation. If you need one, choose an automated DNS integration and give it credentials limited to the required DNS changes. Manual DNS updates are a poor fit for unattended renewal.

Before running Certbot, check the existing configuration.

For NGINX:

sudo nginx -t

For Apache:

sudo apachectl configtest

Fix reported errors before continuing.

With the NGINX plugin installed and both hostnames configured for your website, request and install the certificate:

sudo certbot --nginx --no-redirect \
  -d trailpaws.example \
  -d www.trailpaws.example

For Apache, replace --nginx with --apache. Request only names you control and have configured. The --no-redirect option postpones forced HTTPS while you test.

After any manual configuration change, run the relevant configuration test again. Reload only after it passes:

ServerReload Command
NGINXsudo nginx -s reload
Apachesudo apachectl graceful

Keep the working HTTP site available during installation. There is no need to stop it just to use the NGINX or Apache installation plugin.

Install a Purchased Certificate

Start in the hosting panel or server where the certificate will be installed. Generate a private key and a certificate signing request, usually called a CSR.

The CSR contains information the issuer needs to create your certificate. Submit the CSR to the issuer and keep the private key secure. It must match the certificate you later install.

Complete the issuer’s domain-control checks. For OV or EV, also provide the organization documents it requests.

Install A Purchased Certificate: Purchased Ssl: From Csr To Installed Certificate; Private Key: Keep Secure; Csr: Submit To Issuer; Complete Validation; Receive Certificate And Intermediates; Install Certificate + Matching Key + Chain; Nginx

Once issued, download the certificate and intermediate certificates. The intermediate chain connects your certificate to an authority browsers trust.

In your hosting certificate installer, select the correct website and provide:

  • The issued certificate.
  • Its matching private key.
  • The required intermediate chain, sometimes called the CA bundle.

On a server you manage, configure the correct website to use those files while preserving its existing application routing. For NGINX, enable listen 443 ssl. Point ssl_certificate to a file containing your certificate followed by its intermediate certificates, and point ssl_certificate_key to the matching private key.

Test the configuration before reloading, then open the website over HTTPS. Receiving the certificate files is not the same as installing them successfully.

Secure Both Connections Behind a CDN or Proxy

When a proxy handles website traffic, there are two connections:

Visitor → CDN or proxy → Hosting server

Both need protection.

For an existing Cloudflare setup, confirm that its visitor-facing certificate is active and covers the required names. Separately, install a valid certificate on your hosting server, also called the origin.

Secure Both Connections Behind A Cdn Or Proxy: Cdn Https Requires Two Secure Connections; Visitor; Cdn Or Proxy; Origin Server; Visitor-Facing Https; Origin Https: Port 443; Cloudflare Full (Strict); Current Certificate • Matching Hostname •

Before changing Cloudflare’s connection mode, check that the origin accepts HTTPS on port 443. Its certificate must be current, match the hostname and come from a publicly trusted issuer or Cloudflare’s Origin CA. Then select Full (strict) in Cloudflare’s SSL/TLS overview to encrypt the origin connection and verify its certificate. These are Cloudflare’s Full (strict) requirements.

I would normally keep a publicly trusted certificate at the origin. That also supports direct browser access if your setup needs it.

Before changing application URLs or adding redirects, confirm that the application recognizes the visitor’s original HTTPS connection. Use your host’s supported proxy configuration, and trust forwarded connection information only from the configured proxy. Incorrect detection can make the application redirect an already secure visitor back to HTTPS repeatedly.

Switch Website Content to HTTPS

Before changing the website’s main address, open every required hostname explicitly with https://.

Check that the browser trusts the connection, the certificate covers the name you entered, and its expiration date is valid. Do not bypass a certificate warning and treat the page as ready.

For a deeper public check, use the Qualys SSL Labs SSL Server Test. It can reveal certificate-chain and TLS configuration problems.

Behind a CDN, that public test checks the visitor-facing endpoint. Check the origin certificate separately through your hosting or server controls.

Update Site URLs and Internal References

Change the application’s main address to HTTPS using its supported settings. Preserve the existing hostname and folder structure.

For a standard single-site WordPress installation, change the scheme in WordPress Address and Site Address from http:// to https://. These fields are in the general settings. They can have different paths, so preserve each value apart from the scheme.

If hosting tools or configuration files control those values, update them there instead. Keep your recovery access available because you may need to sign in again.

Next, replace stored references to your own HTTP addresses. Use a database-aware tool that preserves serialized data, which is information WordPress stores in a structured format. A plain database text replacement can damage that structure. If you cannot run the command below, ask your host to perform a replacement that preserves serialized data.

If WP-CLI, the WordPress command-line tool, is installed, preview changes from the WordPress installation directory:

wp search-replace \
  'http://trailpaws.example' \
  'https://trailpaws.example' \
  --all-tables-with-prefix \
  --skip-columns=guid \
  --dry-run

Review the report and confirm that the selected tables belong to this installation. After checking your backup, repeat the command without --dry-run to apply it. Repeat the preview and replacement for any other HTTP hostname stored by this site, such as http://www.trailpaws.example. WP-CLI supports serialized data and dry runs.

Review internal links, form destinations, download links and SEO settings too. Canonical URLs, which identify the preferred address for a page, and sitemap entries should use HTTPS.

Find and Fix Mixed Content

An HTTPS page can still request images, scripts or other resources over HTTP. That is mixed content. Browsers automatically upgrade some requests and block others, so a page can load while a button or layout breaks. MDN explains how browsers handle mixed content.

Open representative pages, right-click and choose Inspect to open the browser’s developer tools. Reload each page, then check Console for warnings and Network for insecure or failed requests.

Trace each insecure address to its source. It may be in page content, a theme setting, a stylesheet, a plugin or an embedded widget.

On one of my digital-product sites, the homepage looked fine after the HTTPS change, but a checkout script still used an HTTP address in an old template. The browser blocked it. Replacing that reference fixed the button, and completing a test purchase confirmed the fix. Since then, I check the buying process before declaring a migration finished.

Find And Fix Mixed Content: Why An Https Checkout Can Still Break; Https Page; Http Checkout Script; Browser Blocks The Script; Confirm Https Works; Update The Source Reference; Retest Checkout And Delivery; A Page Loading Does Not Prove Every

For Trail Paws, an image reference might change from:

http://trailpaws.example/images/checklist.jpg

to:

https://trailpaws.example/images/checklist.jpg

First confirm that the HTTPS address works. Apply the same check to resources used by the contact form and checkout.

If a third-party resource has no working HTTPS version, replace or remove it. Clear website and CDN caches, reload the affected pages, and check again.

Redirect HTTP Traffic to HTTPS

Enable permanent redirects after HTTPS pages and essential functions work.

Choose one preferred hostname, such as trailpaws.example, and coordinate the redirect settings across your host, CDN and application. I prefer one clear place to control the HTTP-to-HTTPS redirect. Several overlapping switches make failures harder to trace.

Each old page should lead to its matching HTTPS page. Preserve the path and query string rather than sending everything to the homepage.

On managed hosting, use the provider’s HTTPS redirect control when available.

For NGINX serving visitors directly, put the redirect in a server block that listens only on port 80 and covers both hostnames. If one block handles both HTTP and HTTPS, separate them first, keeping the application routing in the HTTPS block.

In the HTTP block, preserve the certificate client’s validation location and replace the existing location / with:

location / {
    return 301 https://trailpaws.example$request_uri;
}
Redirect Http Traffic To Https: Https Redirects Must Preserve The Destination; Http://Trailpaws.example; /Hiking-Checklist/; ?Source=Email; 301 Permanent Redirect; Https://Trailpaws.example; Do Not Send Every Page To The Homepage; Test Www, Non-Www

Do not add a duplicate location /. Remove other locations that serve pages or files from this HTTP block, except the validation location, so they cannot bypass the redirect. Keep the return inside location /: a server-level return runs before location matching and can bypass the validation exception. NGINX documents this processing order.

For Apache, the basic directive inside a dedicated HTTP virtual host is:

Redirect permanent "/" "https://trailpaws.example/"

Keep the certificate client’s validation route working. If it requires an HTTP exception, use the corresponding exception setup rather than the blanket redirect. Apache provides both redirect approaches.

After editing either server, test its configuration and reload using the commands above.

Now request:

http://trailpaws.example/hiking-checklist/?source=email

It should reach:

https://trailpaws.example/hiking-checklist/?source=email

Check both www and non-www. Also test HTTPS requests to the nonpreferred hostname. Those need a valid certificate and should reach the preferred HTTPS address without unnecessary redirect chains.

Verify the Website After the Switch

Use a fresh browser session and another device. Existing cookies and cached pages can hide problems.

For Trail Paws, follow the full visitor journey:

  1. Open an old HTTP link to a hiking article.
  2. Follow the link to the printable checklist.
  3. Submit the contact form and confirm the message arrives.
  4. Use the payment provider’s test mode to complete checkout.
  5. Confirm the order and download delivery.

Also check navigation, images and administrator login. Restore normal payment settings after testing.

Verify The Website After The Switch: Https Migration: Test The Full Visitor Journey; 1. Open An Old Http Link; 2. Follow The Product Link; 3. Submit The Contact Form; 4. Complete A Test Checkout; Test Mode; 5. Confirm Order And Download Delivery

In the browser’s Network panel, look for permanent redirects followed by the expected final response. Investigate loops, blocked resources and unexpected errors. A valid certificate proves much less than a working checkout.

Check that canonical URLs and sitemap entries use HTTPS. Submit the updated sitemap in Google Search Console, Google’s tool for monitoring search indexing, and confirm that it includes your HTTPS website. An existing Domain property covers both protocols; a URL-prefix property must match the HTTPS address. Monitor crawl and indexing errors after the change. Google’s migration guidance covers these checks.

Update saved payment-return addresses, integration settings and other URLs under your control. Keep redirects serving old links and bookmarks.

If something fails, pause further changes and restore the affected working setting as needed. Avoid restoring an old database over new orders or submissions. A broken redirect should not cost you the orders received since your backup.

Automate Certificate Renewal

Before calling the setup finished, name who renews and deploys each certificate: your host, a management service, server automation or the proxy provider.

For Certbot, confirm that its renewal timer or scheduled job is installed and active. After redirects are working, run:

sudo certbot renew --dry-run

A successful test checks the renewal process, but the default dry run skips deployment hooks. These are commands that install a renewed certificate or reload a service. Verify deployment and reload behavior separately, especially with custom setups. Certbot’s renewal documentation explains the testing and hook behavior.

Automate Certificate Renewal: Ssl Renewal Is Finished Only When Visitors Get The New Certificate; 1. Renew; 2. Deploy; 3. Reload When Required; 4. Monitor The Served Certificate; Default Certbot Dry Run Skips Deployment Hooks; Public Endpoint

Keep validation working after changes to DNS, firewalls, hosting or DNS credentials.

Set up expiration monitoring for the certificate actually served by your public hostname, with alerts sent somewhere you check. Behind a CDN, monitor the origin certificate separately.

Use the installed certificate’s actual expiration date. Annual billing does not mean a certificate remains valid for a year, and paying an invoice does not install its replacement.

Troubleshoot Common SSL Setup Problems

Read the exact error before changing settings. Fix one cause, retest the failed address or function, and then repeat the broader website checks.

SymptomChecksCorrective ActionConfirmation After the Fix
Certificate issuance failsRead the validation error; inspect A and AAAA records, hostname routing, and the chosen HTTP or DNS challengeCorrect the wrong record or route, allow the HTTP challenge on port 80, or fix the required DNS TXT recordIssuance succeeds and HTTPS presents the new certificate
Issuance reports a CAA restrictionCheck which certificate authorities the domain’s CAA records permitAuthorize the intended issuer while preserving other required authorizationsA new issuance attempt succeeds
Browser reports a hostname mismatchCompare the requested name with certificate coverage and the HTTPS site serving itAdd the missing name or attach the correct certificate to that siteThe exact hostname opens without a warning
Certificate-chain warning appearsCheck whether the server supplies the issuer’s intermediate certificatesInstall the complete required intermediate chainA fresh browser and public TLS test accept the chain
Certificate has expiredCheck renewal logs, deployment and the certificate currently servedRenew, deploy the replacement and reload the service as requiredThe public endpoint presents the new expiration date
Browser reports too many redirectsInspect competing redirect rules and proxy HTTPS detectionRemove conflicting rules and correct trusted proxy handlingThe request reaches the intended HTTPS page
Images, layouts or buttons breakInspect Console and Network reports for insecure or failed resourcesCorrect resource addresses, replace unsupported embeds and clear cachesThe affected page and function work without blocked requests
Troubleshoot Common Ssl Setup Problems: Ssl Setup Problems: Find The Failing Layer; Cannot Issue?; Check Dns, Challenge Routing And The Exact Error; Caa: Check When The Error Names It; Certificate Warning?; Check Hostname, Chain And Expiry; Too Many

CAA records are DNS rules that restrict which certificate authorities may issue for your domain. Change them only when the issuance error points to that restriction.

For a failed form or checkout, repeat the actual submission or test purchase after correcting the error. A warning disappearing from the console does not confirm that delivery works.

What Next?

Open your hosting account and check whether your domain already has a managed certificate. Record its hostname coverage, expiration date and renewal owner before changing anything.

Use the social buttons to share this guide when a website discussion gets stuck at “free or paid.” The useful payoff is a working HTTPS site with renewals handled.

Which part of your setup feels least clear: certificate installation, redirects or renewal? Leave your answer in the comments, along with any other questions.

Share this post with your friends & followers:
Abhishek is a data scientist by day & an online entrepreneur by night. He is known for his ability to simplify complex concepts and make them accessible to a wider audience. He started Passive Book to share his insights and experiences on how to effectively build an online business, which has quickly become a go-to resource for anyone looking to bootstrap an online business from scratch.

Leave a Comment

Build an Online Business 
Without Quitting Your Job

Join 10,000+ solopreneurs building six-figure online businesses from scratch with limited time & tight budgets using smart systems & AI automations.
Optin Form - Main

Free Bonus: Get access to our AI workflows & cheat sheets
Person sitting with laptop in home office environment with launching rocket, coffee mug, sleeping dog, bookshelf, and house plant illustrating work-from-home online business lifestyle. Decorative image.
Thank you for sharing

Follow Us On: