1

I have got a lot of domains. I use basic monitoring script, which checks expiration date of ssl certificate. But a few of my domains use default cloudflare cert.

How to determine and reject domains which use cloudflare built-in SSL certificate?

  • 1
    What are you starting with? You have noted that you are using curl on Linux, how are you using that? Have you already extracted the certificate, or even the certificate chain? – Law29 Jun 29 '18 at 11:48
1

You could just make a simple bash script like:

#!/bin/bash

x=$(openssl x509 -in cert.pem -text | grep -i cloudflare)

if [ "$x" != "" ]; then
  # code for rejecting
else
  # code for ok
fi
  • If you replace 'cert.pem' with $1 then you can just issue ./script.sh name-of-cert.pem – Jonas Bjork Jun 29 '18 at 11:56

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.