My website ssl certificate has expired how do i fix it
Summary
This guide helps you troubleshoot and resolve: My website ssl certificate has expired how do i fix it. Follow the steps below to fix the issue.
Common Causes
An SSL (Secure Sockets Layer) certificate encrypts the data exchanged between your website and its visitors. When a certificate expires, web browsers display security warnings that can scare away customers and damage your organisation's credibility. Search engines also prioritise secure HTTPS sites, meaning an expired certificate can negatively impact your search rankings. This guide explains how to identify an expired certificate, renew it, and resolve common mixed-content warnings that appear after HTTPS is enabled.
Quick Fix Steps
- Verify that your SSL certificate has actually expired using an online SSL checker.
- Log in to your domain registrar or hosting control panel.
- Renew or reissue the SSL certificate for your domain.
- Install the new certificate on your web server.
- Force a HTTPS redirect to ensure all traffic uses the secure connection.
- Check your site for mixed-content errors and update any insecure asset links.
Detailed Instructions
Step 1: Verify the certificate expiry date
- Open your website in
Google Chrome,Microsoft Edge, orApple Safari. - Look for the warning icon in the address bar where the padlock usually appears.
- Click the warning icon and select Connection is not secure or Certificate invalid.
- View the certificate details and check the
Valid toorExpiry datefield. - If the date has passed, your certificate has expired and must be renewed.
Step 2: Renew the SSL certificate
- Log in to your hosting control panel or the client area of your SSL certificate provider.
- Navigate to the SSL/TLS, Security, or Certificates section.
- Select the domain associated with the expired certificate.
- Click Renew, Reissue, or Generate Certificate.
- Complete the validation process, which may involve adding a DNS record or uploading a verification file to your web server.
- Download the issued certificate files, typically including the
.crtcertificate and.keyprivate key.
Step 3: Install the certificate on your server
- Return to your hosting control panel's SSL/TLS section.
- Choose the option to Install or Upload a certificate.
- Paste the certificate code into the
Certificatefield and the private key into thePrivate Keyfield. - If provided, paste the
CA BundleorIntermediate Certificateinto the relevant field. - Click Install Certificate or Save.
- Restart your web server if required by your hosting environment.
Step 4: Enable HTTPS redirects
- Access your website's root directory via FTP or your hosting control panel's File Manager.
- Locate or create the
.htaccessfile if you are using an Apache server. - Add the following redirect rule to force all traffic to HTTPS:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- Save the file and refresh your website to confirm the address bar now shows
https://.
.htaccess file can cause your website to display a 500 Internal Server Error. Always download a backup copy of the file before making changes.Troubleshooting Mixed-Content Warnings
After installing your SSL certificate, you may see a warning that your connection is "not fully secure" even though HTTPS is active. This happens when your page loads some assets—such as images, stylesheets, or scripts—over HTTP instead of HTTPS. This is known as mixed content.
How to identify mixed-content errors
- Open your website in
Google Chrome. - Press
F12orCtrl + Shift + Ito open Developer Tools. - Click the Console tab.
- Look for warnings marked as
Mixed Contentthat list insecurehttp://URLs.
How to fix mixed-content errors
- Open the source code of the affected page or theme template.
- Find any hardcoded links starting with
http://for images, CSS, or JavaScript files. - Change
http://tohttps://, or use protocol-relative URLs starting with//. - If you use a content management system like WordPress, go to Settings > General and ensure both the
WordPress Address (URL)andSite Address (URL)start withhttps://. - Save your changes and clear your website cache.
- Refresh the page and check the Developer Tools Console again to confirm the warnings are gone.
Preventing Future Expiry
- Set calendar reminders 30 days before your certificate is due to expire.
- Enable auto-renewal with your certificate provider if available.
- Use a free service like Let's Encrypt with automatic renewal via your hosting control panel.
- Regularly analyse your site's security status using an online SSL checker.
Still Having Issues?
💻 Open a Ticket