You can get an SSL certificate through your web hosting provider, obtain a free certificate from a certificate authority (CA), or purchase one from a commercial CA.
Each route involves a different level of certificate management. Hosting providers handle much of the process for you, while obtaining a certificate directly from a CA gives you responsibility for steps such as validation, installation, and renewal.
Your hosting setup, validation requirements, and domain coverage determine which route fits your website. After installation, confirm that the site loads over HTTPS without errors and that the certificate renews automatically, since certificate validity periods are getting shorter.
How do SSL certificates differ?
The main differences between SSL certificates are their validation level and domain coverage.
Validation level determines what the CA verifies before issuing the certificate. Domain coverage determines which hostnames the certificate secures.
These differences affect which certificate you obtain, but they don’t change how SSL certificates work: regardless of the validation level or domain coverage, an installed certificate enables an encrypted HTTPS connection between your website and its visitors.
The different SSL certificate types use different levels of validation, depending on whether the CA needs to verify only your control of the domain or also the organization operating the website:
- Domain Validation (DV) verifies that you control the domain. It doesn’t verify who operates the website.
- Organization Validation (OV) verifies domain control and the identity of the organization operating the website.
- Extended Validation (EV) verifies domain control and the organization’s legal identity, including details such as its official registration, physical address, and authority to request the certificate.
Domain coverage determines which hostnames the certificate secures:
- Single-domain certificates cover one domain, such as
example.com, but notblog.example.com. - Wildcard certificates cover all first-level subdomains under the same base domain. For example,
*.example.comcoversblog.example.comandshop.example.com, but notexample.comitself orstore.blog.example.com. - Multi-domain certificates cover multiple specified domains under a single certificate. For example, one certificate can secure
example.com,another.com, andshop.example.com, but not other domains or subdomains unless they’re explicitly included.

Validation and coverage also affect SSL certificate pricing. Free DV certificates cover setups that only require domain validation, while OV and EV certificates are paid options.
How to get an SSL certificate through your web hosting provider
The easiest way to get an SSL certificate is through a web hosting provider that includes SSL with its plans. The provider validates, issues, installs, and renews the certificate for you once your domain is connected and pointed to it.
Follow these steps to set it up:
- Check whether your hosting plan includes SSL. Review your plan features or SSL settings to see whether the provider includes and installs the certificate for you. When choosing a new provider, web hosting with SSL included removes the need to obtain and install a separate certificate.
- Add or connect your domain. Point the domain to your hosting provider so it can verify that you control it.
- Wait for the provider to issue and install the certificate. Once domain validation succeeds, the provider provisions the certificate on the server hosting your website.
- Confirm that SSL is active and automatically renewed. This ensures the provider will replace the certificate when necessary without requiring you to manage renewal yourself.
Hostinger automates this process for web and cloud hosting customers. Each eligible domain gets a lifetime free SSL certificate, which Hostinger installs once the domain points to its servers. It also renews the certificate before it expires, so you don’t need to track renewal dates.
Once installation is complete, the Hostinger dashboard displays the certificate under Security → SSL, including its type and current status.


How to get a free SSL certificate with Let’s Encrypt
To get a free SSL certificate from Let’s Encrypt, use an Automatic Certificate Management Environment (ACME) client to prove domain control and request the certificate. The client then handles validation, issuance, and renewal.
This route suits a self-managed VPS or server, where you obtain and configure the certificate yourself. Here’s how to get a free SSL certificate with Let’s Encrypt in four steps:
- Install an ACME client and enter the domain you want to secure. Install Certbot or another ACME client on the server hosting your website, then configure it with the domain name that needs the certificate. The client sends the certificate request to Let’s Encrypt.
- Choose a domain validation method. Use HTTP-01 when Let’s Encrypt can reach your website over HTTP. The ACME client places a temporary file on the server for Let’s Encrypt to check and confirm domain control. Use DNS-01 when you need a wildcard certificate or want to validate through DNS. This method requires a TXT record in the domain’s DNS, which some ACME clients can add automatically when your DNS provider supports API access.
- Install the issued certificate on your web server. Once validation succeeds, Let’s Encrypt sends the certificate to the ACME client. Certbot can install it automatically on supported web servers such as Apache or Nginx. Otherwise, locate the certificate files generated by the client and configure your web server to use them.
- Enable automatic renewal. Let’s Encrypt certificates are currently valid for 90 days, so configure the ACME client to run its renewal process automatically and check that the scheduled renewal task is active. The client can then request a replacement certificate before the current one expires.
Pro tip
After configuring automatic renewal with Certbot, run certbot renew --dry-run. The command tests the renewal process without replacing your live certificate, so you can catch configuration problems before an actual renewal is due.
How to get an SSL certificate from a commercial certificate authority
Choose the validation level and domain coverage your website requires, then purchase a certificate that meets those requirements.
After purchase, generate a Certificate Signing Request (CSR), complete the CA’s validation process, and install the issued certificate on your server.
Complete the purchase, validation, and installation in six steps:
- Choose the certificate and place your order. Select a commercial CA that offers the validation level and domain coverage you need. During the order, the CA asks you to submit a CSR.
- Generate the CSR on your server. This creates a CSR containing your public key and the information the CA needs to issue the certificate, along with a corresponding private key. Keep the private key secure on your server, as you’ll need it when installing the issued certificate.
- Send the CSR to the CA and complete validation. Paste or upload the CSR as part of your order. The CA then verifies the information required for your certificate. DV requires proof that you control the domain, while OV and EV also require verification of the organization.
- Download the certificate after the CA approves the request. Once validation succeeds, the CA issues a certificate created for the public key in your CSR. You’ll receive the website certificate along with any intermediate certificates needed to establish the chain of trust.
- Install the certificate with its private key. Add the files supplied by the CA to your web server and configure the server to use them with the private key. The certificate and private key now work together to establish HTTPS connections for the domain.
- Set up renewal. Check whether the CA and your server support automated renewal. Without automation, you’ll need to complete the CA’s renewal process and install the replacement certificate when the current one approaches expiration.
Keep the private key generated with the CSR secure and accessible. The issued certificate must be paired with that exact private key during installation. If the key is lost, you’ll need to generate a new CSR and have the certificate reissued.
What to do after installing an SSL certificate
Verify the certificate on the live website by confirming that it loads over HTTPS without certificate warnings, covers the hostname visitors use, redirects HTTP traffic to HTTPS, and has a reliable renewal process.
Run these checks to verify the setup:
1. Open the website over HTTPS. Enter the address with https:// and click the site information icon to the left of the address bar. In Chrome, a working certificate shows Connection is secure.

This confirms that the server is presenting a certificate the browser trusts and that the encrypted HTTPS connection is working.
2. Check that the certificate covers the hostname. In the site information menu, go to Connection is secure → Certificate is valid. In the certificate viewer, open Details, expand Extensions, and choose Certificate Subject Alternative Name. The Field Value lists the hostnames covered by the certificate.

Confirm that every hostname visitors use appears in this list. When your website uses both example.com and www.example.com, for instance, the certificate needs to cover both.
When a hostname is missing, visitors accessing that address may see the NET::ERR_CERT_COMMON_NAME_INVALID error because the certificate doesn’t match the hostname.
3. Test the HTTP-to-HTTPS redirect. Enter the website address with http:// and load the page. Confirm that the browser automatically changes the address to https://.

This redirect ensures visitors use HTTPS even when they arrive through an HTTP URL. The difference between HTTP and HTTPS is important, as only HTTPS connections are protected by a certificate.
Configure the server to redirect HTTP traffic to HTTPS when it doesn’t happen automatically.
4. Look for errors after the switch to HTTPS. Open several pages, launch Chrome DevTools (Ctrl+Shift+I on Windows or Cmd+Option+I on Mac), and select Security. Reload the page so the panel can check how its resources load. Pages without mixed-content problems show their resources as served securely.

Images, stylesheets, scripts, fonts, or embedded content that still load over HTTP create mixed content, which browsers can warn about or block.
Update any remaining HTTP resource URLs and investigate certificate warnings before treating the setup as complete.
5. Verify how the certificate will renew. Confirm that automatic renewal is enabled and working.
Run a renewal test when your ACME client or hosting platform provides one. For a manually managed certificate, establish a renewal process before the current certificate expires to prevent the website from losing HTTPS.
This is becoming more important as certificate validity periods get shorter. Publicly trusted TLS certificates issued on or after March 15, 2026, can remain valid for no more than 200 days.
That limit will drop to 100 days on March 15, 2027, and to 47 days on March 15, 2029, meaning certificates will need to be renewed much more often.
What’s the best way to get an SSL certificate for your website?
For most website owners, the best way to get an SSL certificate is to use the one included with their hosting plan, since the provider issues, installs, and renews it automatically. Confirm that it covers the domains and subdomains you use and leave the certificate management to your host.
For a self-managed VPS or server, Let’s Encrypt is a practical choice when you only need to prove control of the domain.
It provides free DV certificates that you can issue and renew automatically through an ACME client, making it suitable for personal websites, portfolios, blogs, web apps, APIs, and business sites that don’t require organization validation.
A commercial CA is necessary when your certificate must verify the organization behind the website, not only domain control.
You may encounter this requirement when managing company systems under corporate security rules. It can also be written into a client contract or set by an IT team that controls certificate standards across the organization.
Check whether those requirements specify OV or EV, then get the required certificate from a commercial CA.

All of the tutorial content on this website is subject to Hostinger's rigorous editorial standards and values.