Network security

How to Install an SSL Certificate: Step-by-Step Guide for 2026

Installing an SSL certificate is three steps — get a certificate, install it, and confirm HTTPS works. This guide covers the free path, the hosting-panel path, and the manual path.

Cysoro Security TeamPublished · 11 min read
https:// NETWORK SECURITY Install SSLcertificate Free, step by step, in minutes.
Quick answer

To install an SSL certificate, point your domain's DNS to your server, get a certificate from a certificate authority, install the certificate and private key on your web server, redirect HTTP to HTTPS, and set up automatic renewal. The easiest free route is Let's Encrypt with Certbot: run sudo certbot --nginx -d example.com -d www.example.com, or enable the free SSL option in cPanel or Plesk.

Key takeaways

  • Use your host's free SSL option first; use Certbot with Let's Encrypt on your own server.
  • Let's Encrypt certificates last 90 days, so test automatic renewal with a dry run.
  • After install, force HTTPS, fix mixed content, and verify the certificate with an SSL checker.

Installing an SSL certificate sounds intimidating until you have done it once. In practice it is three steps — get a certificate, install it, and confirm HTTPS works with no warnings — and modern hosting tools automate most of the hard part.

What is an SSL certificate, and what does it do?

An SSL certificate, more accurately a TLS certificate, is a digital file that proves your website's identity and enables encrypted HTTPS connections. Browsers use it to verify that they are talking to your domain, not an impostor, and to encrypt the traffic in between.

Without a certificate, browsers show a "Not Secure" warning, visitors leave, and search engines rank the site lower. With one, visitors see the padlock, logins and payments are encrypted, and your site can use modern web features that require HTTPS.

A certificate contains your domain name, the name of the certificate authority that issued it, a public key, and an expiry date. The matching private key stays on your server and must never be shared.

Most sites need only a domain-validated certificate, which proves you control the domain. Organization and extended validation certificates add identity checks for the company behind the site, and cost more.

Which type of SSL certificate do you need?

Choose by how much identity proof you need and how many domains you must cover. For most small websites, a free domain-validated certificate is the right answer.

TypeWhat it provesBest forCost
DV (domain-validated)You control the domainBlogs, small business sitesFree from Let's Encrypt
OV (organization-validated)Domain plus company identityBusinesses that want trust signalsPaid, per year
EV (extended validation)Thorough company checksBanks, large brandsPaid, highest cost
WildcardDomain plus all subdomainsSites with many subdomainsPaid, or free via DNS challenge
Multi-domain (SAN)Several domains on one certSeveral sites on one serverPaid, per domain

A wildcard certificate covers *.example.com as well as the bare domain, which is useful if you run many subdomains. It needs a DNS challenge to prove control, because an HTTP challenge cannot prove control of every subdomain.

Paid certificates last longer than free ones. The industry cap for publicly trusted TLS certificates is 200 days as of March 2026, and the CA/Browser Forum has approved a schedule that reduces the maximum lifetime in stages, reaching 47 days by 2029.

Let's Encrypt certificates last 90 days today, and Let's Encrypt plans to move its default to 64 days on 10 February 2027, then to 45 days on 16 February 2028.

Shorter lifetimes are not a problem if renewal is automated. They are a problem only if you install a certificate by hand and forget about it.

What do you need before you start?

Before you request a certificate, check that you have a registered domain, DNS pointing at your server, and access to the server or hosting panel. Those three things cause most failed installations.

  • A registered domain name that you control, such as example.com.
  • DNS pointing at your server. Your domain's A record, and AAAA record if you use IPv6, must resolve to your server's IP address.
  • Access to the server or panel. SSH access for a VPS, or a hosting control panel such as cPanel or Plesk.
  • Ports 80 and 443 open. The validation server must be able to reach your site over HTTP, and visitors need HTTPS.
  • A working web server. Nginx or Apache, with a site configuration for your domain.

Check DNS first with our free DNS lookup. If the domain does not resolve to your server, the certificate request will fail, and no amount of retrying the install will fix it.

Decide which route you will take. If your host offers a free SSL button, use it. If you manage your own Linux server, use Certbot. If you need a paid certificate, buy it from a certificate authority and install it by hand.

Install in five steps1Point DNSdomain to server2Get a certfree or paid CA3Install itserver or panel4Force HTTPSredirect + fix content5Auto-renewtest the dry runMost failures happen at step 1 — DNS that does not point at the server yet.
The five steps of an SSL install, in order. Illustration by Cysoro.

How to install an SSL certificate in cPanel or Plesk

This is the easiest route, and the right one for most shared hosting. Your host already wires Let's Encrypt or AutoSSL into the control panel, so you can enable HTTPS with a few clicks and no commands.

In cPanel, open the SSL/TLS Status page or the Let's Encrypt section, select your domain and its www variant, and click to issue or enable the certificate. A 2026 step-by-step guide covers the same cPanel and Plesk steps in detail. Enable automatic renewal if the option is shown, then check the site over HTTPS.

In Plesk, open the domain, go to SSL/TLS Certificates, and choose the free Let's Encrypt option. Plesk will request the certificate, install it and set up renewal. Select the option to secure the webmail subdomain as well if you use it.

Some hosts use AutoSSL instead, which issues and renews certificates automatically for every domain on the account. If AutoSSL is on, your site may already have a certificate and you only need to force HTTPS.

After the panel says the certificate is installed, open https://yourdomain.com in a browser and look for the padlock. If it loads without a warning, the install worked. If it does not, check the troubleshooting section below before changing anything else.

How to install a free SSL certificate with Certbot and Let's Encrypt

Certbot is the free, open-source ACME client maintained by the EFF, and it is the officially recommended way to get a Let's Encrypt certificate on your own server. It requests the certificate, proves you control the domain, and configures your web server for you.

Let's Encrypt is a nonprofit certificate authority run by the Internet Security Research Group, and its free certificate guide walks through the same ACME process. It issues free DV certificates through an automated protocol called ACME. An ACME client talks to the certificate authority and completes a challenge to prove control over the requested domain.

There are two challenges you are most likely to use. HTTP-01 places a temporary file on your server that the certificate authority fetches over HTTP. DNS-01 creates a temporary TXT record in your DNS, and it is required for wildcard certificates, which cannot validate over HTTP.

Certbot on Nginx (Ubuntu)

Install Certbot with the Nginx plugin, then run one command for your domain and its www variant. Certbot edits your Nginx configuration, adds the certificate paths, and reloads Nginx.

Run sudo apt update && sudo apt install certbot python3-certbot-nginx, then sudo certbot --nginx -d example.com -d www.example.com. Replace example.com with your own domain. Certbot will ask for an email address for renewal notices and ask whether to redirect HTTP to HTTPS — say yes.

Certbot writes the certificate, private key and intermediate chain to /etc/letsencrypt/live/example.com/. Do not copy those files elsewhere by hand; let Certbot manage them.

Certbot on Apache (Ubuntu)

The Apache path is the same, with the Apache plugin instead. Run sudo apt install certbot python3-certbot-apache, then sudo certbot --apache -d example.com -d www.example.com. Certbot configures the Apache virtual host for HTTPS and reloads the server.

If you only want the certificate files without Certbot editing your configuration, use sudo certbot certonly --webroot -w /var/www/example.com -d example.com, then point your server configuration at the files yourself.

Verify and automate renewal

Check the certificate with sudo certbot certificates, which lists every certificate Certbot manages and its expiry date. Then test renewal with sudo certbot renew --dry-run. If the dry run succeeds, the built-in timer will keep the certificate fresh.

Let's Encrypt certificates last 90 days, so automated renewal is essential. Certbot installs a systemd timer or cron job that runs renewal twice a day. Do not disable it. Let's Encrypt also stopped sending certificate expiration reminder emails in 2025, explaining that automation had made them largely unnecessary.

Finally, open https://yourdomain.com and confirm the padlock, then run our free SSL checker to confirm the chain, expiry date and protocol support.

How to install an SSL certificate manually (CSR method)

Manual installation is needed when you buy a paid certificate, or when your host does not automate the process. It has three parts: generate a certificate signing request, buy the certificate, and install the files the authority sends you.

First, generate a private key and a CSR on your server. The CSR contains your domain, organization and public key. Keep the private key safe — the certificate is useless without it, and anyone with the key can impersonate your site.

Second, submit the CSR to your certificate authority and complete domain validation. The authority will send you the certificate file and an intermediate chain file, usually as .crt or .pem files.

Third, install the files. In cPanel, go to SSL/TLS, then Manage SSL Sites, and paste the certificate, private key and chain bundle. In Plesk, upload the files in the SSL/TLS Certificates section. On Nginx or Apache, point your configuration at the certificate and key files and reload the server.

For Nginx, the configuration needs ssl_certificate pointing at the full chain file and ssl_certificate_key pointing at the private key. For Apache, the virtual host needs SSLCertificateFile, SSLCertificateKeyFile and SSLCertificateChainFile or the combined chain.

Manual certificates do not renew themselves. Set a calendar reminder at least two weeks before expiry, and consider switching to an automated path next time.

How do you force HTTPS and fix mixed content?

Installing the certificate is only half the job. Until you redirect HTTP to HTTPS, visitors can still reach the insecure version, and search engines may index both.

For Nginx, add a server block that listens on port 80 and returns a 301 redirect to HTTPS. For Apache, add a redirect rule in .htaccess or the virtual host. Certbot does this for you if you accept its redirect prompt.

Next, fix mixed content. Mixed content happens when an HTTPS page loads images, scripts or stylesheets over HTTP. Browsers block the insecure parts, so the page looks broken or loses its padlock.

Search your site for hard-coded http:// links to your own domain, images and scripts, and change them to https:// or to relative URLs. Check your theme, plugins and database for old URLs, and clear any cache after the change.

Update your canonical URLs, sitemap and internal links to HTTPS, and tell search engines about the change in Search Console. Finally, consider adding an HSTS header, which tells browsers to always use HTTPS for your domain. Test HSTS carefully, because a misconfigured header can lock visitors out if your certificate later fails.

How do you verify the installation worked?

Verify in three places: the browser, an SSL checker, and your server. Each one catches a different class of mistake.

  • Browser: open https://yourdomain.com and https://www.yourdomain.com. Look for the padlock and no warning. Click the padlock to see the issuer and expiry date.
  • SSL checker: run our free SSL checker to confirm the certificate chain, expiry, and whether the intermediate chain is complete.
  • Command line: run openssl s_client -connect example.com:443 -servername example.com and check that the certificate is returned and the chain verifies.
  • Renewal: run sudo certbot renew --dry-run and confirm it succeeds, if you used Certbot.

Check both the bare domain and the www variant. A certificate that covers only one of them will show a warning on the other, and that is one of the most common installation mistakes.

Why is my SSL certificate not working? Common errors

Most SSL errors have a small number of causes. Work through them in order, and change one thing at a time.

Error or symptomUsual causeFix
Certificate expiredRenewal failed or was never set upRun renewal, check the timer, fix DNS or firewall
Not trusted / chain incompleteIntermediate chain missingInstall the full chain file, not just the leaf
Name mismatchCertificate covers the wrong domainReissue for the correct domain and www variant
Mixed content warningPage loads HTTP resourcesChange hard-coded http:// links to https://
Site still loads over HTTPNo redirect configuredAdd a 301 redirect from HTTP to HTTPS
Challenge failedDNS not pointing at server, port 80 blockedFix DNS, open port 80, check the web root

If Certbot reports a challenge failure, the most common cause is DNS. The domain must resolve to the server Certbot is running on, and the server must answer on port 80. Check both with a DNS lookup and a curl request before retrying.

If the browser says the certificate is not trusted, the chain is usually incomplete. The server must send the intermediate certificates as well as your own certificate. An SSL checker will show the chain and highlight the missing link.

If the site works on one domain but not the other, the certificate probably covers only one name. Reissue it with both the bare domain and the www variant, as in the Certbot examples above.

Never share your private keyYour private key is the secret half of the certificate. Do not email it, paste it into a chat, or upload it to a random checker. If it leaks, revoke the certificate and issue a new one.

How do you renew an SSL certificate?

Renewal depends on how you installed the certificate. Automated paths renew themselves; manual paths need a calendar reminder and a repeat of the install.

With Certbot, renewal is automatic through a systemd timer or cron job that runs twice a day. Test it with sudo certbot renew --dry-run. If the dry run fails, fix the cause — usually DNS, firewall or a changed web root — before the certificate expires.

With cPanel or Plesk, renewal is automatic if the free SSL option is enabled. Check the expiry date in the panel after the first renewal cycle, to confirm it actually happened.

With a paid manual certificate, you must reissue and reinstall before expiry. Start at least two weeks early, because validation can take time, especially for organization-validated certificates.

Set up monitoring so you are told before a certificate expires, not after visitors see a warning. Our certificate monitoring tracks expiry and alerts you in time to act.

SSL troubleshooting checklistDNS points at the right server?Both bare and www domains covered?Full chain installed, not just the leaf?HTTP redirects to HTTPS?Mixed content fixed?Renewal dry run passes?Work through the list in order — change one thing at a time.
Six checks that solve most SSL installation problems. Illustration by Cysoro.

The bottom line

Installing an SSL certificate is a short job once you pick the right route. Use your host's free SSL option if it has one, use Certbot with Let's Encrypt on your own server, and reserve manual installation for paid certificates.

After the install, force HTTPS, fix mixed content, and test renewal with a dry run. Then verify the result with the free SSL checker and set up expiry monitoring so a lapsed certificate never surprises you.

Frequently asked questions

How do I install an SSL certificate for free?

Use your host's free SSL option if it has one, or install Let's Encrypt with Certbot on your own server. On Ubuntu with Nginx, run sudo certbot --nginx -d example.com -d www.example.com, then test renewal with sudo certbot renew --dry-run.

How long does it take to install an SSL certificate?

With a hosting panel or Certbot, it usually takes a few minutes once DNS is pointing at your server. Manual installation takes longer, because you must generate a CSR, wait for validation and install the files by hand.

What is the difference between DV, OV and EV certificates?

DV certificates prove you control the domain and are free from Let's Encrypt. OV certificates also verify the company behind the site, and EV certificates involve thorough company checks. Most small websites need only a DV certificate.

Do I need a wildcard SSL certificate?

You need a wildcard certificate only if you run many subdomains, such as shop.example.com and blog.example.com, and want one certificate to cover them all. A wildcard needs a DNS challenge to prove control.

Why is my SSL certificate not working?

The most common causes are DNS that does not point at your server, a missing intermediate chain, a certificate that covers the wrong domain, or mixed content on the page. Check DNS, the full chain, both the bare and www domains, and any hard-coded http links.

How do I renew an SSL certificate?

With Certbot, renewal is automatic through a timer that runs twice a day, and you can test it with sudo certbot renew --dry-run. With cPanel or Plesk, renewal is automatic if the free SSL option is enabled. Manual certificates must be reissued and reinstalled before expiry.

Sources

  1. Let's Encrypt via Dev.to — How to Get a Free SSL Certificate with Let's Encrypt
  2. PaidHosting — How to Install an SSL Certificate: Step-by-Step Guide (2026)
  3. WebPeak — How to Set Up a Free SSL Certificate for Your Website
  4. Dev.to — How to Get Free SSL Certificates with Let's Encrypt in Minutes
  5. Dev.to — How to Secure a Website with a Free SSL Certificate (Let's Encrypt)
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Let's Encrypt and Certbot documentation as summarized in current installation guides, and CA/Browser Forum lifetime rules.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free