For the exactly the same reason (local development closely resemble production when at all possible) I develop inside VPS via VSCode RemoteSSH and manage certificates (and everything else) exactly as in production
This is one of the best things about running a home hypervisor machine (the kids call it a “homelab” these days) — I can locally deploy a development VPS like that for no extra charge, just by cloning a template.
I'm 40 ... havent we always called it a home lab lol