Ahmad Awais

NAVIGATE


SHARE


Reissue Cloudflare SSL Certificate Manually

Ahmad AwaisAhmad Awais

Just now, I was banging my head on the table trying to figure out how to renew or manually reissue a new free SSL certificate for a domain on Cloudflare. TBH, it’s not obvious in the docs.

Reissue Cloudflare SSL Certificate Manually

Here goes nothing …

How to renew or reissue a free SSL Certificate from Cloudflare in ten minutes!#

  1. Go to your domain on Cloudflare
  2. Head over to the SSL ❯ Edge Certificates
  3. Way down there, [Disable Universal SSL]
  4. Go ahead and do this; expect 10 minutes of downtime
  5. Wait for 10 minutes or so — and then, surprise surprise
  6. Go ahead and [Enable Universal SSL]

 

How can I verify this worked?#

Two ways, really. First, at the top on the same page, in the `Edge Certificates` section, note when the SSL will expire. When you re-enable universal SSL, this area will show pending verification and, in a bit, will show you the new SSL with an expiration date three months from now (or later than the previous SSL expiration date).

Second way? If you’re like me, I have a fancy shell function to check the SSL info of a domain. Looks like this:

# Check SSL info of a domain
ssl() {
	if [ -z "$1" ]; then
		echo "Usage: ssl <domain>"
		return 1
	fi

	domain=$1

	echo | openssl s_client -servername $domain -connect $domain:443 2>/dev/null | openssl x509 -noout -text
}

Now all you have to do is check ssl example.com and you can find the ‘Not After’ date. Or do a grep with ssl example.com | grep 'Not After'.

Use your code for good!
Best,
AA

Founder & CEO of ⌘ Command Code, the most used coding agent for open models: 160K+ users, 50K+ paying customers. Founded Langbase (AI cloud for agents with memory & tools).

"What an awesome example for developers." — Satya Nadella, CEO of Microsoft, on my NASA Ingenuity code.

NASA Ingenuity Mars Helicopter code contributor · 6× GitHub Star, one of the first 8 Gold Stars · #1 trending JavaScript developer on GitHub · 6× Google Developer Expert · 6× Microsoft MVP.

Ex VP DevRel & DevTools at RapidAPI · Google Developers Advisory Board (gDAB) founding member · OpenAPI Business Governing Board, Linux Foundation · SF DevNetwork AI/ML Advisory Board · Angel investor (Replit, Resend, Daytona, Gumroad and you?).

Award-winning open source engineering leader: 300+ projects, 50–100M downloads a year, including Shades of Purple (5M+ developers) and corona-cli (10B+ queries).

Taught 217K+ developers via NodeCLI.com and VSCode.pro. 160+ talks. Blogging since 2000, billions of views.

❯ Read more about Ahmad Awais or come say hi on 𝕏 @MrAhmadAwais.

Newsletter

The Developer Takeaway

Founder notes on AI, dev tools, and building developer products. No spam.

247,813+ developers subscribed
Comments 0
There are currently no comments.