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 at Langbase.com โ€” Ship hyper-personalized Al apps in seconds ยท Ex VP DevRel Eng. Rapid ยท Google Developers Advisory Board (gDAB) founding member. ๐Ÿง‘โ€๐Ÿ’ป AI/ML/DevTools Angel Investor โฏ AI/ML Advisory Board member San Francisco, DevNetwork

๐ŸŽฉ Award-winning Open Source Engineer & Dev Advocate ๐ŸฆŠ Google Developers Expert Web DevRel ๐Ÿš€ NASA Mars Ingenuity Helicopter mission code contributor ๐Ÿ† 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer).

๐ŸŒณ Node.js foundation Community Committee Outreach Lead, Member Linux Foundation, OpenAPI Business Governing Board, and DigitalOcean Navigator. ๐Ÿ“Ÿ Teaching thousands of developers Node.js CLI Automation (100 videos ยท 22 Projects) & VSCode.pro course. Over 142 million views, 24 yrs Blogging, 108K developers learning, 200+ FOSS.

โœŒ๏ธ Author of various open-source dev-tools and software libraries utilized by millions of developers worldwide โ“ฆ WordPress Core Developer ๐Ÿ“ฃ TEDx Speaker with 100+ international talks.

โœจ As quoted by: Satya Nadella ยท CEO of Microsoft โ€” Awais is an awesome example for developers.
๐Ÿ™Œ Leading developers and publishing technical content for over a decade ๐Ÿ’œ Loves his wife (Maedah) โฏ Read more about Ahmad Awais.

๐Ÿ‘‹โ€ฆ Awais is mostly active on ๐• @MrAhmadAwais

๐Ÿ“จ

Developers Takeaway

Stay ahead in the web dev community with Ahmad's expert insights on open-source, developer relations, dev-tools, and side-hustles. Insider-email-only-content. Don't miss out - subscirbe for a dose of professional advice and a dash of humor. No spam, pinky-promise!

โœจ 172,438 Developers Already Subscribed
Comments 0
There are currently no comments.