Prerequisite:
Please ensure you have an active CloudFlare account and have added your WordPress Website to CloudFlare. Also, make sure you are using CloudFlare nameservers for your domain.
Step 01:
Sign in to your CloudFlare account

Step 02:
Make sure a flexible SSL certificate is enabled under the “Crypto” tab for your selected website


Step 03:
While signing in to your CloudFlare account, go to > My Profile, Scroll down to API Keys, locate the Global API Key, and copy the key for further use inside your website.

