Cloudflare scripts creation

Job ID: 31215457

Budget: $30 – $250 USD

I need a php developer to create two cloudflare scripts.

1. This script should be put in a Ubuntu 20 PHP 7 server and I should be able to give to it domain parametrers. EG
- php cloudflare-script --domains a.com,b.com,c.com

The script should connect with the global api key to my cloudflare account and look for this domains and generate and SSL certificate with cert.pem and key.pem and download it from server and put it in /etc/ssl/a.com/cert.pem and /etc/ssl/a.com/key.pem respectively. After that it should also verify if the dns proxy is enabled at the A record related, if not , it should enable it.

2. Cloudflare script should be able to receive an url parametre and have an validate and auth header.
E.G
-- www.mywebiste.com/cloudflare-script.php?subdomain=xyz

-Script should be able to read that xyz value and create a subdomain CNAME record at a.com domain. So if I send xyz, then at cloudflare panel I should have a CNAME record xyz with value app , so that I can use the xyz.abc.com url in order to point to app.abc.com.
Related categories: PHP Linux Shell Script VPS API