Currently, I have LetsEncrypt installed on CentOs 9 stream. Using snap. DigitalOcean is my VPS provider.
I see Centos 9's support will end on May 2027. There is no option for me to upgrade to CentOs 10. Hence I might use Centos 9 for one or two more years after its EOL.
My question is will LetsEncrypt via Snap would work for an outdated OS? How many more years can I use it?
If you find a client that is statically compiled it has a good chance of working right out of the box, even on an old distro. I would try Lego.
You might not find an RPM for it, but if not you can just copy the single binary to the server, using curl, wget, rsync, scp or whatever method you prefer.
The EFF developers sometimes comment in this forum but mostly they reply on their github or Mattermost
My personal opinion is that it will be difficult to answer your question of "Will there be any issue?". It is difficult to predict how software will behave in 2 years as systems lose support. I agree using something like legomight give better predictability.
It is impossible to tell. The Snaps will eventually not update at some point in time - the snapd client will lose updates for your platform, the snap builds will require newer snap systems (certbot requires a newer snap), the dependency snaps might lose updates too (i.e. certbot requires a newer python, but that's not available in snap).
There may also be situations where there are TLS deprecations (protocol, cipher) and your system can't communicate with newer options.
With the exception of replacing ACME v1 with the ACME v2 (RFC), LetsEncrypt servers updates have been mostly backwards compatible. There have been a few instances where features were turned off or replaced, but that did not affect most clients because they were just implementation details (not part of the RFC).
Chances are things will still work.
If they don't, the two options are:
Grab certs via DNS-01 on another machine, deploy them onto your server.
Run your machine behind another serving as a gateway that handles all the TLS stuff; this is popular for legacy systems and can usually run on the cheapest $5/month virtual instance.