Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/xxx.com/fullchain.pem. Your cert will
expire on 2017-01-10. To obtain a new or tweaked version of this
certificate in the future, simply run certbot again. To
non-interactively renew all of your certificates, run "certbot
renew"
my nginx site.conf
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name xxx.comwww.xxx.com;
root /var/www/laravel/public;
index index.php index.html index.htm;
[emerg] BIO_new_file("/etc/letsencrypt/live/xxx.com/fullchain.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/xxx.com/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
Buy the file is really exsit
why I got this error? What wrong is it?
Without knowing your exact setup it’s difficult to say.
You could try giving world read access to the file ( if it isn’t already). You could also try copying the file to a different location ( maybe alongside your nginx config) and setting it to the same user / group as your nginx config - then trying to read it from there.
That’s a great suggestion. For more safety you would want to copy the other files too, because privkey.pem is likely to change every time, and chain.pem perhaps every couple of years.