I've tried using the Cloudflare's
'Authenticated Origin Pulls' - where CloudFlare origin-pull servers present a TLS client certificate as part of connections to the origin. Web servers and other infrastructure are configured to require client certificate authentication for connections.
Very easy and quick to install, and works really well, stopping unauthenticated traffic to origin, but haven't quite worked out how complete the handshake via node-red.
It is achieved for normal traffic by adding a third pem certificate and the following to the https apache config;
SSLVerifyClient require
SSLVerifyDepth 10
SSLCACertificateFile /var/www/cloudflare-origin-pull-ca.pem
I can however get node-red running by creating a site profile for port 2053, adding the code above, and enabling it with a2ensite, which although works, is a hack, and the code (I think) needs to be called from node-red's settings.js in a similar way to how node-red authenticates https.
Is this a possibility?
Paul