I success with using certbot-nginx plugin.
I know that it is opensource and hosted on github.
But I do not have enough skill to analyze this code.
For example:
I have several internal sites which is proxied by nginx. All virtualhost configs has following access restrictions by anonymous:
allow 192.168.1.0/24;
allow 192.168.0.0/24;
allow 10.88.0.0/16;
allow 127.0.0.1;
# gate1.example.com
allow X.X.X.X;
# gate2.example.com
allow X.X.X.X;
# other gate's
# .......
deny all;
This access restrictions prohibits letsencrypt servers, as well all other undefined hosts.
But certbot renew --nginx
performs certificate update normally.
How does it work ?
If it is secure ?