I’m pretty sure there might be some arcane scripts for you that would help you. But you should clarify query a bit. What are the weird issues you’re running into? Alternatively, if you’re managing nginx and letsencrypt manually you could try:
- Caddy
- Traefik
- NGINX Proxy Manager
All three options should cover those requirements. You should take a look at them and decide which suit you best.