{"id":99831,"date":"2023-12-12T06:47:24","date_gmt":"2023-12-12T06:47:24","guid":{"rendered":"\/tutorials\/?p=99831"},"modified":"2026-11-13T10:08:26","modified_gmt":"2026-11-13T10:08:26","slug":"how-to-get-ssl-certificate","status":"publish","type":"post","link":"\/tutorials\/how-to-get-ssl-certificate\/","title":{"rendered":"How to get an SSL certificate"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<h2 id=\"h-how-do-ssl-certificates-differ\" class=\"wp-block-heading h-t-title-2\">How do SSL certificates differ?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The main differences between SSL certificates are their validation level and domain coverage. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Validation level determines what the CA verifies before issuing the certificate. Domain coverage determines which hostnames the certificate secures.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These differences affect which certificate you obtain, but they don&#8217;t change <a data-click-id=\"hgr-post-content-link-how-ssl-certificates-work\" data-wpel-link=\"internal\" href=\"\/tutorials\/what-is-ssl\/\" rel=\"follow\">how SSL certificates work<\/a>: regardless of the validation level or domain coverage, an installed certificate enables an encrypted HTTPS connection between your website and its visitors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Domain Validation (DV)<\/strong> verifies that you control the domain. It doesn&#8217;t verify who operates the website.<\/li>\n\n\n\n<li><strong>Organization Validation (OV)<\/strong> verifies domain control and the identity of the organization operating the website.<\/li>\n\n\n\n<li><strong>Extended Validation (EV)<\/strong> verifies domain control and the organization\u2019s legal identity, including details such as its official registration, physical address, and authority to request the certificate.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Domain coverage<\/strong> determines which hostnames the certificate secures:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Single-domain<\/strong> certificates cover one domain, such as <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">example.com<\/code>, but not <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">blog.example.com<\/code>.<\/li>\n\n\n\n<li><strong>Wildcard certificates<\/strong> cover all first-level subdomains under the same base domain. For example, <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">*.example.com<\/code> covers <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">blog.example.com<\/code> and <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">shop.example.com<\/code>, but not <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">example.com<\/code> itself or <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">store.blog.example.com<\/code>.<\/li>\n\n\n\n<li><strong>Multi-domain certificates<\/strong> cover multiple specified domains under a single certificate. For example, one certificate can secure <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">example.com<\/code>, <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">another.com<\/code>, and <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">shop.example.com<\/code>, but not other domains or subdomains unless they&#8217;re explicitly included.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image wp-block-image aligncenter size-large\">\n<figure class=\"wp-lightbox-container\" data-wp-context=\"{&quot;imageId&quot;:&quot;6b08db082c956&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6b08db082c956\" ><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/1794236997301-0.png\" alt=\"Two-column diagram of SSL validation levels from domain to extended validation, and single-domain, wildcard, and multi-domain coverage.\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Validation and coverage also affect<a data-click-id=\"hgr-post-content-link-ssl-certificate-pricing\" href=\"\/tutorials\/ssl-certificate-cost\/\"> SSL certificate pricing<\/a>. Free DV certificates cover setups that only require domain validation, while OV and EV certificates are paid options.<\/p>\n\n\n\n<h2 id=\"h-how-to-get-an-ssl-certificate-through-your-web-hosting-provider\" class=\"wp-block-heading h-t-title-2\">How to get an SSL certificate through your web hosting provider<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Follow these steps to set it up:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Check whether your hosting plan includes SSL.<\/strong> Review your plan features or SSL settings to see whether the provider includes and installs the certificate for you. When choosing a new provider,<a data-click-id=\"hgr-post-content-link-web-hosting-with-ssl-included\" data-wpel-link=\"internal\" href=\"\/web-hosting\" rel=\"follow\"> web hosting with SSL included<\/a> removes the need to obtain and install a separate certificate.<\/li>\n\n\n\n<li><strong>Add or connect your domain.<\/strong> Point the domain to your hosting provider so it can verify that you control it.<\/li>\n\n\n\n<li><strong>Wait for the provider to issue and install the certificate.<\/strong> Once domain validation succeeds, the provider provisions the certificate on the server hosting your website.<\/li>\n\n\n\n<li><strong>Confirm that SSL is active and automatically renewed.<\/strong> This ensures the provider will replace the certificate when necessary without requiring you to manage renewal yourself.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Hostinger automates this process for web and cloud hosting customers. Each eligible domain gets a lifetime<a data-click-id=\"hgr-post-content-link-free-ssl-certificate\" href=\"\/free-ssl-certificate\"> free SSL certificate<\/a>, which Hostinger installs once the domain points to its servers. It also renews the certificate before it expires, so you don\u2019t need to track renewal dates.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once installation is complete, the Hostinger dashboard displays the certificate under <strong>Security \u2192 SSL<\/strong>, including its type and current status.<\/p>\n\n\n<div class=\"wp-block-image wp-block-image aligncenter size-large\">\n<figure class=\"wp-lightbox-container\" data-wp-context=\"{&quot;imageId&quot;:&quot;6b08db082cfe0&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6b08db082cfe0\" ><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/1794237011069-0.png\" alt=\"ostinger hPanel SSL certificate page to Hostinger dashboard SSL certificate page.\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n<figure class=\"wp-block-image size-full\"><a data-click-id=\"hgr-post-content-link-web-hosting\" class=\"hgr-tutorials-cta hgr-tutorials-cta-web-hosting\" href=\"\/web-hosting\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/public\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 id=\"h-how-to-get-a-free-ssl-certificate-with-lets-encrypt\" class=\"wp-block-heading h-t-title-2\">How to get a free SSL certificate with Let\u2019s Encrypt<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To get a free SSL certificate from Let\u2019s 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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This route suits a self-managed VPS or server, where you obtain and configure the certificate yourself. Here\u2019s how to get a free SSL certificate with Let\u2019s Encrypt in four steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Install an ACME client and enter the domain you want to secure.<\/strong> 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\u2019s Encrypt.<\/li>\n\n\n\n<li><strong>Choose a domain validation method.<\/strong> Use HTTP-01 when Let\u2019s Encrypt can reach your website over HTTP. The ACME client places a temporary file on the server for Let\u2019s 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\u2019s DNS, which some ACME clients can add automatically when your DNS provider supports API access.<\/li>\n\n\n\n<li><strong>Install the issued certificate on your web server. <\/strong>Once validation succeeds, Let\u2019s 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.<\/li>\n\n\n\n<li><strong>Enable automatic renewal.<\/strong> Let\u2019s 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.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Pro tip                <\/p>\n            <\/div>\n            <p class=\"protip__content\"> After configuring automatic renewal with Certbot, run <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">certbot renew --dry-run<\/code>. The command tests the renewal process without replacing your live certificate, so you can catch configuration problems before an actual renewal is due.<\/p>\n                    <\/div>\n        <\/p>\n\n\n\n<h2 id=\"h-how-to-get-an-ssl-certificate-from-a-commercial-certificate-authority\" class=\"wp-block-heading h-t-title-2\">How to get an SSL certificate from a commercial certificate authority<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Choose the validation level and domain coverage your website requires, then purchase a certificate that meets those requirements. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After purchase, generate a Certificate Signing Request (CSR), complete the CA\u2019s validation process, and install the issued certificate on your server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Complete the purchase, validation, and installation in six steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Choose the certificate and place your order.<\/strong> 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.<\/li>\n\n\n\n<li><strong>Generate the CSR on your server.<\/strong> 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\u2019ll need it when installing the issued certificate.<\/li>\n\n\n\n<li><strong>Send the CSR to the CA and complete validation.<\/strong> 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.<\/li>\n\n\n\n<li><strong>Download the certificate after the CA approves the request.<\/strong> Once validation succeeds, the CA issues a certificate created for the public key in your CSR. You&#8217;ll receive the website certificate along with any intermediate certificates needed to establish the chain of trust.<\/li>\n\n\n\n<li><strong>Install the certificate with its private key.<\/strong> 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.<\/li>\n\n\n\n<li><strong>Set up renewal.<\/strong> Check whether the CA and your server support automated renewal. Without automation, you&#8217;ll need to complete the CA&#8217;s renewal process and install the replacement certificate when the current one approaches expiration.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">    <div class=\"announcement-block announcement-block--warning\">\n        <span class=\"announcement-block__heading\">\n            <svg width=\"24\" height=\"26\" viewBox=\"0 0 24 26\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n                d=\"M12 23.5C17.799 23.5 22.5 18.799 22.5 13C22.5 7.20101 17.799 2.5 12 2.5C6.20101 2.5 1.5 7.20101 1.5 13C1.5 18.799 6.20101 23.5 12 23.5ZM13.637 8.65198C13.637 7.74791 12.9041 7.01501 12 7.01501C11.0959 7.01501 10.363 7.74791 10.363 8.65198C10.5335 10.5375 10.875 14.383 10.875 14.383C10.875 15.0043 11.3787 15.508 12 15.508C12.6213 15.508 13.125 15.0043 13.125 14.383V14.38L13.637 8.65198ZM11.9927 16.714C11.3714 16.714 10.8677 17.2177 10.8677 17.839C10.8677 18.4603 11.3714 18.964 11.9927 18.964H12.0073C12.6286 18.964 13.1323 18.4603 13.1323 17.839C13.1323 17.2177 12.6286 16.714 12.0073 16.714H11.9927Z\"\n                fill=\"#BE1025\"\/>\n            <\/svg>\n            Warning        <\/span>\n        <p class=\"announcement-block__content\">\n            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\u2019ll need to generate a new CSR and have the certificate reissued.        <\/p>\n    <\/div>\n\n    <\/p>\n\n\n\n<h2 id=\"h-what-to-do-after-installing-an-ssl-certificate\" class=\"wp-block-heading h-t-title-2\">What to do after installing an SSL certificate<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run these checks to verify the setup:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Open the website over HTTPS.<\/strong> Enter the address with <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">https:\/\/<\/code> and click the site information icon to the left of the address bar. In Chrome, a working certificate shows <strong>Connection is secure<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image wp-block-image aligncenter size-large\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6b08db082f236&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6b08db082f236\" class=\"is-resized wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/1794237016328-0.png\" alt=\"Chrome's Security panel showing a secure connection and a valid SSL certificate for a website.\" style=\"width:391px;height:auto\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">This confirms that the server is presenting a certificate the browser trusts and that the encrypted HTTPS connection is working.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Check that the certificate covers the hostname.<\/strong> In the site information menu, go to <strong>Connection is secure<\/strong> \u2192 <strong>Certificate is valid<\/strong>. In the certificate viewer, open <strong>Details<\/strong>, expand <strong>Extensions<\/strong>, and choose <strong>Certificate Subject Alternative Name<\/strong>. The <strong>Field Value<\/strong> lists the hostnames covered by the certificate.<\/p>\n\n\n<div class=\"wp-block-image wp-block-image aligncenter size-large\">\n<figure class=\"wp-lightbox-container\" data-wp-context=\"{&quot;imageId&quot;:&quot;6b08db082f6ae&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6b08db082f6ae\" ><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/1794237020288-0.png\" alt=\"Chrome Certificate Viewer showing the Subject Alternative Name field with the root domain and www hostname covered by the SSL certificate.\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Confirm that every hostname visitors use appears in this list. When your website uses both <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">example.com<\/code> and <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">www.example.com<\/code>, for instance, the certificate needs to cover both.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When a hostname is missing, visitors accessing that address may see the <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">NET::ERR_CERT_COMMON_NAME_INVALID<\/code> error because the certificate doesn&#8217;t match the hostname.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. Test the HTTP-to-HTTPS redirect.<\/strong> Enter the website address with <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">http:\/\/<\/code> and load the page. Confirm that the browser automatically changes the address to <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">https:\/\/<\/code>.<\/p>\n\n\n<div class=\"wp-block-image wp-block-image aligncenter size-large\">\n<figure class=\"wp-lightbox-container\" data-wp-context=\"{&quot;imageId&quot;:&quot;6b08db082fac7&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6b08db082fac7\" ><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/1794237026658-0.png\" alt=\"Browser address bar showing a website changing from HTTP to HTTPS after the page loads.\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">This redirect ensures visitors use HTTPS even when they arrive through an HTTP URL. The difference between<a data-click-id=\"hgr-post-content-link-http-and-https\" data-wpel-link=\"internal\" href=\"\/tutorials\/http-vs-https\/\" rel=\"follow\"> HTTP and HTTPS<\/a> is important, as only HTTPS connections are protected by a certificate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Configure the server to<a data-click-id=\"hgr-post-content-link-redirect-http-traffic-to-https\" href=\"\/tutorials\/force-https-using-htaccess\/\"> redirect HTTP traffic to HTTPS<\/a> when it doesn&#8217;t happen automatically.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. Look for errors after the switch to HTTPS.<\/strong> Open several pages, launch Chrome DevTools (Ctrl+Shift+I on Windows or Cmd+Option+I on Mac), and select <strong>Security<\/strong>. Reload the page so the panel can check how its resources load. Pages without mixed-content problems show their resources as served securely.<\/p>\n\n\n<div class=\"wp-block-image wp-block-image aligncenter size-large\">\n<figure class=\"wp-lightbox-container\" data-wp-context=\"{&quot;imageId&quot;:&quot;6b08db083c3d1&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6b08db083c3d1\" ><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/1794237030875-0.png\" alt=\"Chrome DevTools Security panel showing valid HTTPS, a trusted certificate, and all page resources served securely.\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Images, stylesheets, scripts, fonts, or embedded content that still load over HTTP create mixed content, which browsers can warn about or block. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Update any remaining HTTP resource URLs and investigate certificate warnings before treating the setup as complete.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5. Verify how the certificate will renew.<\/strong> Confirm that automatic renewal is enabled and working. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is becoming more important as certificate validity periods get shorter. <a data-click-id=\"hgr-post-content-link-publicly-trusted-tls\" data-wpel-link=\"external\" href=\"https:\/\/cabforum.org\/working-groups\/server\/baseline-requirements\/requirements\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Publicly trusted TLS<\/a> certificates issued on or after March 15, 2026, can remain valid for no more than 200 days.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<h2 id=\"h-whats-the-best-way-to-get-an-ssl-certificate-for-your-website\" class=\"wp-block-heading h-t-title-2\">What\u2019s the best way to get an SSL certificate for your website?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">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.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For a self-managed VPS or server, Let\u2019s Encrypt is a practical choice when you only need to prove control of the domain. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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&#8217;t require organization validation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A commercial CA is necessary when your certificate must verify the organization behind the website, not only domain control.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check whether those requirements specify OV or EV, then get the required certificate from a commercial CA.<\/p>\n\n\n<div class=\"wp-block-image wp-block-image aligncenter size-large\">\n<figure class=\"wp-lightbox-container\" data-wp-context=\"{&quot;imageId&quot;:&quot;6b08db083cd18&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6b08db083cd18\" ><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/12\/1794237036243-0.png\" alt=\"Decision flow showing how to choose between a host-managed certificate, Let's Encrypt, and a commercial CA certificate.\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can get an SSL certificate through your web hosting provider, obtain a free certificate from a certificate authority (CA), [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/how-to-get-ssl-certificate\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":530,"featured_media":161641,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to get an SSL certificate: 3 methods explained","rank_math_description":"Learn how to get an SSL certificate through your hosting provider, Let\u2019s Encrypt, or a commercial CA, plus how to install, verify, and renew it.","rank_math_focus_keyword":"how to get an SSL certificate","_content_updated_date":"2023-12-12","footnotes":""},"categories":[22628,22630],"tags":[],"class_list":["post-99831","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hosting","category-technical-aspects"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-get-ssl-certificate","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/como-instalar-ssl\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/comment-obtenir-un-certificat-ssl\/","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-obtener-un-certificado-ssl\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-mendapatkan-ssl\/","default":0},{"locale":"de-DE","link":"https:\/\/www.hostinger.com\/de\/tutorials\/wie-bekommt-man-ein-ssl-zertifikat\/","default":0},{"locale":"it-IT","link":"https:\/\/www.hostinger.com\/it\/tutorial\/come-ottenere-un-certificato-ssl\/","default":0},{"locale":"nl-NL","link":"https:\/\/www.hostinger.com\/nl\/tutorials\/ssl-certificaat\/","default":0},{"locale":"pl-PL","link":"https:\/\/www.hostinger.com\/pl\/tutoriale\/jak-uzyskac-certyfikat-ssl\/","default":0},{"locale":"ko-KR","link":"http:\/\/www.hostinger.com\/kr\/tutorials\/how-to-get-ssl-certificate\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-get-ssl-certificate","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-get-ssl-certificate","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-get-ssl-certificate","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-get-ssl-certificate","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-get-ssl-certificate","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-get-ssl-certificate","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-get-ssl-certificate","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-obtener-un-certificado-ssl\/","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/como-obtener-un-certificado-ssl\/","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-obtener-un-certificado-ssl\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/como-instalar-ssl\/","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/99831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/530"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=99831"}],"version-history":[{"count":20,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/99831\/revisions"}],"predecessor-version":[{"id":161853,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/99831\/revisions\/161853"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media\/161641"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=99831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=99831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=99831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}