Sooner or later all arbitrageurs have to create SSL-certificates for their domains: someone thinks that this will add traffic to FB, someone thus increases the trust of users, and somewhere (say, in direct sales) it is a direct requirement of IP.

So what are the options for connecting https for your feed to see the coveted lock in the browser bar?

The easiest way is to use CloudFlare: add our domain there and turn on the SSL/TLS tab in Flexible mode.

But it is not always necessary to add each domain in CloudFlare + I would like to somehow once set up an HTTPS connection and forget about it as a bad dream.
Today we are going to deal with tracker Keitaro and write a script that will generate SSL certificates for all domains parked on it.
On its own. tracker does not know how to generate certificates and by default the process looks like this:
- Park a domain to tracker and add it on the appropriate tab
- Using the terminal, connect to the server where the tracker and run the certificate generation script
- After the certificate is issued, check the HTTPS checkbox of the domain

Now let's imagine that we add domains every day and not one or two, but 22... ?
Now we take it, download from here 3 files and save them to a folder on the server with tracker: in /var/www/ssl_cron
Open both php files in any text editor and replace the text there:
{YOUR_DOMAIN} change it to the domain or ip-address we have tracker
{YOUR_API_KEY} change to the API access key Keitaro
Now we need to configure the Cron task scheduler to run a script every minute that will take a random domain WITHOUT https and issue a certificate for it:
- Connecting through the terminal to the server
- We write crontab -e and get into the editor
- Add this line at the end:
*/1 * * * * * * * sudo -u root /var/www/ssl_cron/ssl.sh
That's it! Now for each parked domain in the tracker In a maximum of one minute, the certificate will be issued and the HTTPS checkbox will be enabled.
And with you was the Yellow Web, pour on the plus side, gentlemen! ☝
P.S. If you are still pouring without tracker, it's time to get one!