My server is currently running fine with the old certificate issued using certbot.
When I try:
$ sudo certbot renew
Then I get:
Cert is due for renewal, auto-renewing…
Error while running nginx -c /etc/nginx/nginx.conf -t.
nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/letsencrypt/live/mydomain/fullchain.pem") failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: ANY PRIVATE KEY error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib)
nginx: configuration file /etc/nginx/nginx.conf test failed
I opened the file pem file and it seems fine to me… I mean it is working correctly at the moment.
Anybody know what the issue could be? Thanks.