Giving an Internet-connected program autonomous write-access to system-critical filesystems is not considered good practice in production environments.
Much better to have a separate central cert management system that handles renewals and pushes the certs outwards to the DMZ systems.