I already have run certbot in nextcloud few days.
then today I want to change my domain,
so I ran delete command:
certbot delete
and I want to create new domian
certbot --nginx -d my_new_domain.com
It produced this output:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
No certificates found.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
root@Jail-NextCloud:/usr/local/etc/nginx # certbot --nginx
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running nginx -c /usr/local/etc/nginx/nginx.conf -t.
nginx: [emerg] cannot load certificate "/usr/local/etc/letsencrypt/live/my_domain/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/etc/letsencrypt/live/my_domain/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c /usr/local/etc/nginx/nginx.conf -t.\n\nnginx: [emerg] cannot load certificate "/usr/local/etc/letsencrypt/live/my_domain/fullcha
I can login to a root shell on my machine: yes
The version of my client is: 1.22.0