MC-BARS.COMDomains · SSL · HTTPS · Guides

MC-BARS.COM / Articles / SSL Renewal

How to renew an SSL certificate and set up automatic renewal

Home / Articles / SSL Certificate Renewal
Practical guide · HTTPS / ACME / Certbot

How to Renew an SSL Certificate: Certbot, Let’s Encrypt, Nginx, Apache, and Hosting Providers

SSL certificate renewal: automatic Let’s Encrypt renewal, Certbot, Nginx and Apache, Beget and REG.RU settings, expiration monitoring, and troubleshooting.

MC-BARS.COM · Updated: November 5, 2026 · 22 sections · 4 new illustrations · 29,167 characters

1. Why you should renew an SSL certificate in advance

Automatic SSL renewal: a certificate, a schedule, and continuous website protection.
Automatic SSL renewal: a certificate, a schedule, and continuous website protection. The illustration is for explanatory purposes.

An SSL certificate is a document with a limited validity period. The server may continue serving pages after it expires, but browsers will no longer consider the connection secure. A warning will appear on screen, visitors may choose not to proceed, and automated clients may stop exchanging data. For a store, this risks losing orders; for a corporate portal, it could prevent employees from signing in; for a small blog, it could reduce trust in the site.

An SSL renewal is not simply a matter of changing the date inside the old file. The certificate authority issues a new certificate with new validity dates and verifies control over the domain. The server must then start using that certificate. The process therefore consists of at least two parts: successful issuance and successful deployment. The third part is an external check using the same address visitors use.

A reliable setup does not depend on whether the administrator remembers a calendar date. An automated client regularly checks whether renewal is needed, issues a certificate through ACME, installs it safely, and, if necessary, makes the server reload its configuration. If an error occurs, the system should alert the person responsible before the certificate expires.

The main point: “Certificate issued” does not mean “the site is serving the new certificate.” An external HTTPS check after renewal is essential.

2. What validity periods apply in 2026

The validity periods for public TLS certificates are getting shorter. Under the adopted CA/Browser Forum ballot SC-081v3, from March 15, 2026 the maximum validity period for newly issued publicly trusted certificates is 200 days. On March 15, 2027, it is set to decrease to 100 days, and from March 15, 2029, to 47 days. These limits apply to newly issued certificates: a previously issued certificate does not become expired solely because the rules have changed.

Some certificate authorities may set an actual maximum validity period slightly shorter than the regulatory limit. For example, a product may be issued for 199 days to avoid edge cases when both calendar days are counted inclusively. For this reason, “200” should not be taken as a promise of exactly 200 days for every purchase.

For Let’s Encrypt as of the date this article was updated, the standard validity period for most certificates is 90 days. Short-lived profiles are also available. The certificate authority has announced a planned gradual transition to 64 days and then 45 days. This is another reason not to base automation on a rigid rule such as “run renewal every 60 days,” but to use a modern ACME client and the intervals it recommends.

Public certificate issuance dateIndustry maximum validity periodWhat to consider
15.03.2026—14.03.2027200 daysIn effect as of November 2026
15.03.2027—14.03.2029100 daysMore frequent renewal will be needed
From 15.03.202947 daysA fully manual process becomes especially risky

Sources: CA/Browser Forum SC-081v3, Let’s Encrypt — Certificate Lifetimes.

3. How to check when a certificate expires

The simplest way is to open the site over HTTPS and view the certificate details from the browser’s security menu. The menu location depends on the browser and its version. The details usually include the issuer, domains, and the start and end dates of validity. When checking, do not limit yourself to a single address: example.ru, www.example.ru, shop.example.ru and other names may be served by different certificates.

On a Linux server, you can get the date using the OpenSSL command without opening a browser. The domain in the example is a placeholder; replace it with the actual address in a working command. The parameter -servername passes SNI—the hostname, without which a server hosting multiple virtual hosts may return the certificate for a neighboring site.

echo | openssl s_client -connect example.ru:443 \
  -servername example.ru 2>/dev/null | \
  openssl x509 -noout -dates -issuer -subject

The field notAfter indicates the end of the validity period. It is usually displayed in UTC/GMT. When calculating the remaining days, account for the time zone and time of day, not just the calendar date. The command checks the certificate received from a specific network location; with a CDN, load balancer, or multiple servers, it is useful to check each node separately.

Check the validity period, whether the domain matches the SAN, the trust chain, and whether an HTTPS connection can actually be established. The date alone does not prove that the site is working correctly.

4. What to prepare before renewal

Before making any changes, find out who manages the certificate. On shared hosting, this is often the Beget or REG.RU control panel; on a VPS, the certificate may be issued by Certbot, acme.sh, or the web server itself; on a CDN, a separate certificate is used at the external node. If there are multiple proxy layers, determine where HTTPS terminates and where the next connection begins.

Check the list of domains on the certificate, including www and active subdomains. Then make sure the DNS records point to the correct address, that DNS-01 is available with the DNS provider in use, and that the domain can be reached over port 80 for an HTTP-01 challenge. A site migration, DNS change, new WAF, or network restrictions often cause unexpected renewal errors.

Before changing the configuration, save backup copies of the settings and a list of the current certificate paths. Do not email the private key, upload it to online checkers, or paste it into public forum posts. For most checks, the certificate without the private key is sufficient.

  • A list of all names that need HTTPS.
  • An understanding of who issues and who installs the certificate.
  • Access to the control panel or server with the necessary permissions.
  • Working DNS records and an available ACME validation method.
  • A configuration backup and a plan for reverting changes.

5. How automatic renewal through ACME works

ACME is a protocol that allows a client to request public certificates automatically and prove control over a domain name. The certificate authority provides a challenge, the client completes it, and then receives a new certificate. It can prove control of the domain through HTTP-01, DNS-01, or TLS-ALPN-01; which options are available depends on the client and infrastructure.

For HTTP-01, the certificate authority attempts to retrieve a special file over HTTP on port 80. For DNS-01, it looks for a TXT record of the form _acme-challenge.example.ru. Let’s Encrypt Wildcard certificates are usually issued using DNS-01. Do not leave a port open permanently, disable the firewall, or change DNS at random: first choose the appropriate method and check exactly what validation is required.

The new certificate is installed at the path used by the server. In a typical installation, Certbot maintains links to the current files in the directory /etc/letsencrypt/live/ИМЯ/. After issuance, the service may need to reload. If the certificate is stored in another control panel or manually copied to an application directory, Certbot’s standard automation may not be sufficient.

Modern ACME implementations take ARI (ACME Renewal Information)into account: the certificate authority can tell the client the recommended renewal window. This is better than a rigid schedule based on a set number of days.

The ACME client issues a new certificate and provides it to the web server.
The ACME client issues a new certificate and provides it to the web server. The illustration is for explanatory purposes.

6. Renewing Let’s Encrypt certificates with Certbot

Certbot is a widely used ACME client that works with Nginx, Apache, and many standalone servers. If the certificate was previously issued with Certbot, you usually do not need to start from scratch by running a new issuance command. First, check which certificates the program already manages and how renewal is configured.

sudo certbot certificates
sudo certbot renew --dry-run

The first command displays certificate names and file paths; the second runs a renewal dry run. --dry-run lets you check the validation method and configuration before a critical deadline. A test does not guarantee that no problems will occur in the future, but it helps detect an incorrect webroot, a closed port, incorrect DNS, or an authorization failure in advance.

For scheduled renewal, use the command sudo certbot renew. It checks managed certificates and renews those that are due for renewal according to the client’s logic. There is no need to force-renew all certificates every day: frequent requests can use up the certificate authority’s rate limits and cause errors.

sudo certbot renew
sudo certbot certificates

For manual troubleshooting, it can be useful to select a specific certificate with --cert-name. However, editing files in /etc/letsencrypt/renewal/ without understanding their format is unsafe. When changing the validation method, it is better to use the documented procedure certbot reconfigure in supported versions.

7. Systemd timer and cron: what runs the renewal

On most modern Linux systems, Certbot is installed with a scheduler already configured—either a systemd timer or cron. Creating a second scheduled job without checking for an existing one is not always useful and can sometimes make troubleshooting more complicated. First, check the actual timers, logs, and how Certbot was installed: from distribution packages, snap, or another source.

systemctl list-timers --all | grep -i certbot
systemctl status certbot.timer
sudo journalctl -u certbot.service --since "7 days ago"

In some builds, the service and timer may have different names, for example, containing snap.certbot. The absence of certbot.timer specifically does not mean that automation is absent: check the snap schedule and cron entries.

sudo grep -R "certbot renew" /etc/cron* 2>/dev/null
sudo crontab -l

If a job exists and runs regularly, the main task is to check its result. It is not enough to confirm that the scheduler ran: domain validation must succeed, a new certificate must be obtained, the server process must be updated, and HTTPS must be checked externally. A log entry showing that the job finished without errors does not replace the last step in this chain.

8. Nginx: how to check the new certificate after renewal

Nginx uses certificates whose paths are specified in the directives ssl_certificate and ssl_certificate_key. They usually point to fullchain.pem and privkey.pem in the Certbot directory. If the certificate has been renewed but the Nginx worker process has not reloaded the files, the old version may still be shown externally.

sudo nginx -t
sudo systemctl reload nginx

The first command checks the configuration syntax; a graceful reload is performed only after the check succeeds. If there is a configuration error, a virtual host conflict, or insufficient permissions, the problem must be fixed before restarting the service. reload is preferable to a hard stop where it is supported and correctly configured.

For automation, you can use a deploy hook that runs after a new certificate has been obtained successfully. This is more useful than an ordinary post hook: there is usually no need to reload the server after every check if nothing has been renewed.

sudo certbot renew --deploy-hook "systemctl reload nginx"

Do not copy this command into cron without checking: the hook settings and Certbot version must match the installation method. After renewal, it is recommended to check the certificate externally using openssl s_client and make sure the site serves the new expiration date.

9. Apache: renewal and configuration reload

The process is similar for Apache: the certificate file is updated, then the web server must start using the new set of files. The configuration may contain SSLCertificateFile and SSLCertificateKeyFile. In recent Apache versions, the chain is often provided as a full certificate in a single file; the directives used depend on the version and configuration.

sudo apachectl configtest
sudo systemctl reload apache2

On some distributions, the service is called httpd, not apache2. On RHEL-family systems, including AlmaLinux and Rocky Linux, check the current service name. Testing the configuration before reloading protects the live site from accidental disruption.

If the certificate was issued using the --apacheplugin, Certbot typically knows how to update the configuration. However, this is not enough to guarantee success: individual virtual hosts may point to copied PEM files rather than the current paths in /etc/letsencrypt/live. Check the result both on the server and through the site’s public address.

A reverse proxy may run in front of Apache on a VPS. In this case, the external certificate may be installed on Nginx, a load balancer, or a CDN rather than on Apache. You need to renew the certificate that visitors actually see.
The server must reload the new certificate after it is issued successfully.
The server must reload the new certificate after it is issued successfully. The illustration is for explanatory purposes.

10. Beget: SSL renewal on shared hosting

On Beget managed hosting, the control panel often manages the certificate. When a free certificate is connected normally, the hosting service usually handles automatic renewal, but this should be checked for the specific product and installation method. Do not try to run Certbot on shared hosting if access to server services is not provided.

In the control panel, open the settings for the relevant site and the section related to SSL/HTTPS, then check the certificate status and domain names. Information about automatic renewal, manual reissuance, and installing a third-party certificate depends on the control panel and plan. Before publishing instructions, verify the button names and steps against Beget’s official help documentation rather than old screenshots.

If the expiration date is not updated, first check that the domain is linked to the account, DNS is configured correctly, www is present in the settings, delegation is working, and there are no conflicting certificates. After fixing the cause, retry the renewal through the standard interface. For domains served through a CDN, also check the certificate on the CDN side.

A detailed guide to connecting the service is available in the article “How to install SSL on Beget”. It supplements this article with the steps for initially setting up HTTPS.

11. REG.RU: what to do before a certificate expires

REG.RU may offer several different scenarios: a free certificate on a compatible plan, a paid product with a separate service, a third-party certificate installed manually, or a certificate on a VPS. These options cannot be covered by a single “click renew” instruction, because the selected service determines how the certificate is issued, how the domain is validated, and how the new file is installed.

First, determine which certificate is actually serving the site. Check the service, expiration date, domains, and available actions in your account and hosting settings. If you use a paid product, paying for the next term and issuing a new certificate do not always mean that a new certificate will automatically appear on the server. Additional installation may be required after reissuance.

If the site is hosted on a REG.RU VPS, use the standard server setup—for example, Certbot with Nginx or Apache. If the domain is registered with REG.RU but hosted by another provider, renewal is handled by the actual server or certificate control panel. The domain registrar does not necessarily manage the site’s HTTPS.

A separate guide to the initial setup is available in the article “Installing SSL on REG.RU”. Check the steps against REG.RU’s official documentation as of the renewal date.

12. DNS-01 and Wildcard: why renewal sometimes fails

For Wildcard certificates of the form *.example.ru domain control is usually validated using DNS-01. The client adds a TXT record _acme-challenge, which the certificate authority then checks. If the DNS provider has changed, the API token has expired, or the required permissions to edit the zone are no longer available in the settings, the existing automation stops working.

Manually adding TXT records may work for a one-time issuance, but it is a poor fit for certificates with short validity periods. For a robust setup, use a supported DNS provider ACME plugin with a token that has limited permissions. Do not give the client permission to manage the entire cloud account if access to only the required DNS zone is sufficient.

If an error occurs, check the TXT record name and value, zone delegation, propagation delays, and DNS API limits. Do not assume the problem is resolved just because the record is visible in one local utility: different resolvers may show different data for a while.

For details about name coverage and DNS-01 validation, see the article “Wildcard SSL: Protecting Subdomains”.

13. Moving a site, CDN, and proxy: where to renew SSL

A typical site may pass through several points: the browser connects to a CDN, the CDN connects to a load balancer, and the request is then forwarded to the application. Each encrypted connection may use a separate certificate. Therefore, renewal on the origin server does not guarantee that the certificate on the external CDN is updated, and renewing on the CDN does not replace checking the secure connection to the origin.

In practice, first determine which system responds to requests for the public name through DNS. Then check the selected SSL/TLS mode in the CDN settings and the origin server’s certificate. Do not disable origin certificate verification as a permanent solution: this hides the underlying problem and can weaken security.

After a migration, check the old and new servers separately, verify that the certificates contain the same domain names, and check SNI and redirects. With load balancing, one node may show the new certificate while another still shows the old one. In that case, the issue affects only some visitors and is especially difficult to detect without monitoring each address.

If the certificate is stored in container secrets or a Kubernetes Secret, update it in the storage that the ingress controller actually reads from. Copying the file to a random virtual machine will not solve the problem.

14. How to set up monitoring and alerts

Automatic renewal is essential for reliability, but it does not replace monitoring. External monitoring should regularly connect over HTTPS and check the certificate’s expiration date, name match, trust chain, and connectivity. It is useful to run monitoring from another server or an external service so that it does not depend on the same infrastructure it checks.

Set alert thresholds with a sufficient margin: for example, send an informational message several weeks before expiration, followed by a more prominent alert as the critical deadline approaches. For short-lived certificates, review the thresholds and check frequency. Make sure notifications reach a channel that people actually monitor instead of getting lost in a forgotten inbox.

Monitoring should check the certificate served to external clients, not just the expiration date of a local PEM file. The internal certificate may renew successfully while the CDN continues to show the old one. It is useful to maintain a list of all public domains, who is responsible for them, and how their certificates are renewed.

  • Check certificate expiration dates and names.
  • Check HTTPS availability and TLS verification status.
  • Check multiple nodes and the CDN.
  • Alert when an ACME client run fails.
  • Check the result after every successful renewal.
Expiration monitoring and alerts help prevent an SSL certificate from expiring.
Expiration monitoring and alerts help prevent an SSL certificate from expiring. The illustration is for explanatory purposes.

15. Common renewal errors: causes and actions

Read the entire renewal error message. A failed attempt may involve domain validation, the client, certificate authority rate limits, or deploying an already-issued certificate. First, record the certificate name, date, error code, and validation method actually in use.

SymptomLikely causeFirst action
HTTP-01 challenge failedPort 80 is inaccessible, DNS is incorrect, or there is a redirect or WAFCheck that the validation URL is accessible and review the logs
DNS challenge failedTXT record is missing, API token is invalid, or DNS propagation is delayedCheck the record using authoritative DNS and verify the token’s permissions
Certificate issued, but site still oldService has not reloaded the files, or the proxy is using a different copyCheck the paths in the configuration and reload the service
Too many requests / rate limitToo many new issuances in a short periodStop repeated reissuance attempts and check the CA rate limits
Wrong certificate for domainIncorrect SNI, SAN, or virtual host configurationCheck the name in SAN and the external result with SNI
Permission deniedInsufficient permissions for keys or configurationCheck file ownership and access permissions

The most dangerous response to an error is to keep forcing issuance indefinitely, changing settings without recording previous actions. This creates new problems and can run into rate limits. It is more effective to reproduce the failure in a test environment, find the root cause, and verify the process on a single domain.

16. Safe updates without downtime

For a live online store or corporate website, not only security but also continuity of service matters. Renewal should therefore be set up so that the configuration is checked before changes are applied. For Nginx, this is nginx -t; for Apache, it is apachectl configtest. After a successful check, the configuration is reloaded with minimal disruption to active connections.

If you need to change the validation method, it is best to test the new option in a safe environment first and not delete the working certificate until issuance is complete. Private keys require particular care. If you suspect they have been compromised, you need more than a routine renewal: issue a certificate with a new key and assess whether the old certificate needs to be revoked.

In a large infrastructure, a certificate may be distributed to multiple servers through a centralized secrets store or deployment system. Without checking every node, some visitors will continue to receive old data. After changing the certificate, it is useful to check several external IP addresses and domain aliases.

Before a manual operation, save a backup of the working configuration, the old certificate for analysis, and a short rollback plan. A backup containing a private key must be stored securely and must not end up in public repositories.

17. Post-update verification: step-by-step checklist

Start by opening the website at https:// without special exceptions for errors. Then check the versions with www, without it, and any important subdomains separately. If a redirect chain is used, it should lead to the expected HTTPS address without loops.

curl -I https://example.ru
curl -IL http://example.ru

Command curl -I requests the headers of an HTTPS response, and -L can follow redirects. For certificates and chains, the OpenSSL tool with SNI is more useful. After the update is complete, compare the notAfter field with its previous value and check that the domain name is correct.

echo | openssl s_client -connect example.ru:443 \
  -servername example.ru 2>/dev/null | \
  openssl x509 -noout -enddate -subject -issuer

The expiration date is not the only thing that matters. Make sure that WordPress pages, CSS, JavaScript, images, login forms, and API functionality are not affected. An HTTP/HTTPS conflict can sometimes cause Mixed Content. An external diagnostic service, such as SSL Labs.

A server may return a certificate that differs from the expected one if a CDN is in front of it. Check the exact domain and route visitors use.

18. What to do if the certificate has already expired

If the certificate has already expired, the priority is to restore proper HTTPS without disabling essential security checks. Determine which certificate is actually being served to the browser and where it is served from. Next, check the error log for the last update and choose the standard renewal procedure for the specific installation method.

On a VPS with Certbot, it is useful to start with sudo certbot certificates, then fix the cause of the error and try the renewal again. On shared hosting, use the control panel tools. If the certificate belongs to a CDN, a separate action is required on the service's side. After obtaining the new certificate, reload the server configuration and check the site from an external network.

You should not advise visitors to bypass browser warnings as a permanent way to use the site. Nor should you switch the site back to HTTP—this could leave logins, personal data, and content without the necessary protection. Restoring proper HTTPS is usually safer and simpler than temporary workarounds.

After resolving the incident, determine why automation failed: a DNS issue, schedule, permissions, billing period, API token, or server reload. Until the cause is fixed, the same incident may happen again.

19. Renewing paid OV/EV certificates and how they differ from DV

A DV certificate confirms control of a domain. OV and EV certificates also involve verifying organization details under the applicable rules. When renewing an OV/EV certificate, some organization details may need to be reverified, and the process may take longer than automatic renewal of a standard DV certificate.

This does not mean that OV or EV provides stronger encryption. The strength of a secure connection is determined by TLS parameters, server configuration, and algorithms, not just by the type of legal entity verification. Buying an expensive certificate does not resolve DNS issues, an incorrect chain, or the lack of automated monitoring.

For a paid product, it is important to distinguish between renewing the service with the seller, issuing a new certificate by the certificate authority, and installing it on the production server. Paying for the service does not in itself guarantee that the browser is already seeing the new certificate. When several parties are involved in the process, it is useful to assign responsibility in advance among the registrar, hosting provider, system administrator, and site owner.

A detailed comparison of the types is available in “DV, OV, and EV: SSL Certificate Differences”.

20. Frequently asked questions about SSL certificate renewal

Do I need to install the certificate manually every time?

No. With a properly configured ACME client, issuance, installation, and activation are usually automated. A manual procedure is needed if the product does not support automation or an unusual problem occurs.

Can I renew a certificate before it expires?

Technically, many systems allow you to request a new certificate in advance, but client rules, certificate authority limits, and renewal availability depend on the product. It is recommended to use the standard schedule rather than forcing reissuance indefinitely.

Does renewal affect SEO?

Renewal does not in itself improve rankings. However, it prevents browser warnings and potential inaccessibility of secure pages. After making changes, it is important to preserve the correct redirects, canonical URLs, and HTTPS functionality.

What should I do when changing servers?

Check DNS, install or issue a certificate in the new infrastructure, make sure the domains are included in SAN, and configure separate automation. Do not assume that the renewal schedule will automatically move from the old server.

Why is the new certificate already on disk, but the browser shows the old one?

Most often, the server is reading a different copy of the file, a reload was not performed, or a proxy/CDN is serving the external certificate. Start by checking the actual TLS entry point.

21. Conclusion: how to organize renewal without surprises

Renewing an SSL certificate becomes simple when you establish a clear sequence: identify all domains, assign one person responsible for issuance, configure an ACME client or the hosting provider's standard mechanism, check that it runs automatically, ensure changes are applied safely, and enable external monitoring. No single step replaces the others.

For WordPress on managed hosting, the main task is to make sure the control panel actually manages the certificate and automatic renewal is enabled. For a VPS with Nginx or Apache, check Certbot, the timer, the domain validation method, the deploy hook, and the actual TLS response. For projects using Wildcard certificates, pay particular attention to the DNS API. For CDNs and load balancers, check certificates at every level.

Short certificate lifetimes increase the importance of automation. In 2026, you may still encounter products that are valid for months, but industry rules already provide for further reductions in validity periods. A site whose procedure is fully tested today will be easier to maintain after future changes as well.

Practical takeaway: successful renewal is confirmed not by an email from the registrar or an entry in the Certbot log, but by a correct HTTPS connection with the new certificate and a clear process for the next renewal.

22. Official documentation and sources

This material was checked against technical documentation and publicly available industry requirements as of November 5, 2026. Hosting interfaces, issuance parameters, and software versions may change—before taking action on a production server, check the latest instructions.

IP Geolocation by DB-IP