I have nginx which I'm using mainly as a reverse proxy. I have many services running at home such as Plex. It is reachable through plex.mydomain.com for which I have created a letsencrypt certificate. Everything was working perfectly until I have updated the letsencrypt certificates. Since then, only my desktop Chrome still works but I'm suspecting it is doing so because of its cache. Safari does not work, neither curl nor wget.
The nginx conf is the following
server {
listen 80 ;
server_name plex.mydomain.com plex.myotherdomain.com ;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
listen 443;
server_name plex.mydomain.com plex.myotherdomain.com ;
satisfy any;
allow 192.168.1.0/24; ##chez moi
deny all;
auth_basic "closed site";
auth_basic_user_file /etc/nginx/certs/password;
ssl_certificate /etc/letsencrypt/live/plex.mydomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/plex.mydomain.com/privkey.pem;
location / {
proxy_pass http://192.168.1.102:5000;
proxy_redirect http:// $scheme://;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
If I run curl https://plex.mydomain.com
then I get curl: (56) SSLRead() return error -9806
.
When I access plex.mydomain.com
from Safari, Nginx logs give
2016/08/09 19:23:27 [alert] 52081#0: worker process 53076 exited on signal 11
2016/08/09 19:23:27 [notice] 52081#0: start worker process 53079
2016/08/09 19:23:27 [notice] 52081#0: signal 23 (SIGIO) received
2016/08/09 19:23:27 [notice] 52081#0: signal 23 (SIGIO) received
The letsencrypt certificate has been generated with the following command:
sudo certbot certonly --standalone -d plex.mydomain.com -d plex.myotherdomain.com
Any idea what am I doing wrong? Thank you very much for your help.