Renew and add domains at the same time


#1

I’m currently running

certbot renew \
    --standalone \
    --pre-hook "systemctl stop nodeProxyServer.service" \
    --post-hook "systemctl start nodeProxyServer.service" \

then I just link my server to the files in /etc/letsencrypt. It works well.

Is there a single-command to add or remove domains while renewing?

If not, what’s the best alternative? Maybe I just have to manually revoke then create a new one, but was wondering if there was an easier way.


#2

Maybe the certonly command with the --expand option does the trick? Not sure yet.


#3

You should issue a new certificate with --expand indeed. After which, you can renew normally.


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.