Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My web server is (include version):
openlitespeed 1.7.19
The operating system my web server runs on is (include version): Ubuntu 22.04
My hosting provider, if applicable, is:
Vultrr
I can login to a root shell on my machine (yes or no, or I don't know):
Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
No
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
1.21.0
Also, is there a specific reason why you're revoking the certificate? I noticed you're not using the --reason to provide a reason for the revocation. See User Guide — Certbot 2.11.0 documentation for more info and the values valid for the --reason option.
I got that command from the very article that you referred to. The only thing I changed in that command was the domain name.
The domain was only being used temporarily while moving the site to a new server, so that cert is no longer needed and it was giving me some trouble getting the SSL that was loaded for the main domain to work. I was getting a domain mismatch.
However, I was able to get into the OLS web console and change the urls for the keys and now it is working as expected on the permanent domain.
${foo} substitutes a variable called foo into a shell expression. That variable doesn't exist, which is why you got that error message. It would work if you had just written /etc/letsencrypt/archive/new.nation.republicbarterandtrade.com/cert1.pem
In general, you don't have to revoke a certificate if you're simply not using it anymore, but there's nothing wrong with doing it either -- it is yours to revoke if you want to