SSL Certificate Setup & Renewal: Key Facts
In this article
SSL certificate setup and renewal are the two essential processes that keep a website's HTTPS encryption valid and trustworthy. This article explains what you need to know to install, configure, and renew SSL/TLS certificates correctly, avoiding common pitfalls that cause browser warnings and service interruptions.
What SSL Certificates Do
An SSL (Secure Sockets Layer) certificate — now more accurately called a TLS (Transport Layer Security) certificate — is a digital file that binds a cryptographic key pair to your domain name. When a browser connects to your site, the certificate proves your server owns that domain and enables an encrypted connection. This prevents eavesdropping, tampering, and impersonation. Modern browsers display a padlock icon and “https://” in the address bar when a valid certificate is present. Without one, users see a “Not Secure” warning, which can drive visitors away and harm your search ranking.
How SSL/TLS Works
The process begins when a browser requests a secure connection. The server responds by sending its certificate, which includes the public key and the domain name. The browser checks that the certificate is valid, not expired, and issued by a trusted certificate authority (CA). It then uses the public key to establish a shared secret, encrypting all subsequent data. This handshake happens in milliseconds and is transparent to the user. The private key never leaves your server; it is used only to decrypt incoming data and to sign the handshake.
Choosing the Right Certificate
Not all certificates are the same. The main types are:
- Domain Validation (DV) – Verifies you control the domain. Issued in minutes, free options exist (e.g., Let's Encrypt).
- Organization Validation (OV) – Also verifies your organization's legal existence. Takes a few days.
- Extended Validation (EV) – Requires a thorough vetting process. Shows the organization name in the address bar. Takes days to weeks.
- Wildcard – Covers one domain and all its subdomains (e.g., *.example.com).
- Multi-domain (SAN) – Covers multiple distinct domains in one certificate.
For most small to medium websites, a DV certificate is sufficient. Choose OV or EV if you run an e-commerce site or handle sensitive user data and want to display stronger trust signals. Wildcard certificates simplify management when you have many subdomains.
How to Set Up an SSL Certificate
Setup involves three main steps: generating a CSR, obtaining the certificate, and installing it.
- Generate a key pair and CSR – On your server, create a private key and a Certificate Signing Request (CSR). This is often done with a command like
openssl req -new -newkey rsa:2048 -nodes -keyout example.com.key -out example.com.csr. The CSR contains your public key and domain details. - Submit the CSR to a CA – The CA validates your domain (for DV) or organization (OV/EV) and issues the certificate. For DV, you may need to respond to an email, add a DNS TXT record, or upload a file to your website.
- Install the certificate on your server – Upload the certificate file (and any intermediate certificates) to your web server. The exact location and configuration depend on your server software (Apache, Nginx, IIS, etc.). For example, in Nginx you would set the
ssl_certificateandssl_certificate_keydirectives.
After installation, test your HTTPS configuration using tools like SSL Labs' SSL Server Test or your browser's developer tools.
Renewal Essentials
Certificates expire, typically after 90 days (Let's Encrypt) or 1–2 years (commercial CAs). Renewal is the process of obtaining a new certificate before the old one expires. The steps are similar to initial setup, but many hosting providers automate it. If you use Let's Encrypt, tools like Certbot can renew automatically via cron jobs or systemd timers. For manual renewal, you must generate a new CSR (or reuse the same key), submit it, and reinstall the certificate. Set reminders at least 30 days before expiry to avoid last-minute issues. Check your certificate's expiry date using a browser or command-line tools like openssl s_client -connect example.com:443 -servername example.com.
Common Problems and Misconceptions
One common misconception is that a certificate can be “renewed” in place. In reality, renewal always issues a new certificate with a new expiry date. Another frequent issue is a mismatch between the certificate's domain and the URL users type — for example, a certificate for example.com will not work for www.example.com unless it includes both names. Also, forgetting to include intermediate certificates can cause errors in some browsers, even though the main certificate is valid. Finally, many people think a certificate is a one-time setup; in fact, it must be renewed regularly, and failure to do so results in browser warnings and lost trust.
Costs and Automation
Costs vary widely. Let's Encrypt offers free DV certificates, which are ideal for most sites. Commercial CAs charge anywhere from a few dollars to hundreds of dollars per year, depending on validation level and features. Many web hosts include a free SSL certificate with your hosting plan. Automation is key to avoiding expiry-related downtime. Services like Certbot, acme.sh, and cPanel's AutoSSL can handle renewal automatically. For custom setups, you can use the ACME protocol to automate issuance and renewal with any CA that supports it.
Frequently Asked Questions
What happens if my SSL certificate expires?
When a certificate expires, browsers will show a security warning and block the connection. Users can bypass it, but doing so exposes them to potential attacks. Your site will effectively be inaccessible to most visitors, and search engines may lower your ranking.
How do I check my SSL certificate's expiry date?
You can check in your browser by clicking the padlock icon and viewing the certificate details, or use an online SSL checker tool. On the command line, run openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates to see the notBefore and notAfter dates.
Can I use the same private key for renewal?
Yes, you can reuse the same private key when renewing, as long as it is still secure. However, it is good practice to generate a new key periodically. Reusing a key does not affect the validity of the new certificate.
What is a self-signed certificate and should I use one?
A self-signed certificate is one you generate yourself without a CA. It encrypts traffic but is not trusted by browsers, so visitors will see a warning. It is suitable for testing or internal use, but not for public websites.
How long does it take to get an SSL certificate?
DV certificates can be issued in minutes if your domain is already verified. OV certificates typically take 1–3 business days, and EV certificates can take 3–7 days or longer due to manual vetting.
Do I need a dedicated IP address for SSL?
No, thanks to SNI (Server Name Indication), multiple SSL certificates can share the same IP address. This is standard practice today, and all modern browsers support it.