So not sure if anyone worked out this issue but solved it and its just weird
2026/10/04 14:17:52 [emerg] 6720#3780: cannot load certificate "F:/nginx\conf
example.example.co.uk-crt.pem": BIO_new_file() failed (SSL: error:8000007B:system library::no protocol option:calling fopen(F:/nginx\conf
example.example.co.uk-crt.pem, r) error:10080002:BIO routines::system lib)
so there I was setting up nginx and one by one testing each certificate setting
server {
listen 443 ssl;
server_name example.example.co.uk;
ssl_certificate /nginx\conf\example.example.co.uk-crt.pem; # managed by Certbot
# Update with your SSL certificate path
ssl_certificate_key /nginx\conf\example.example.co.uk-key.pem; # managed by Certbot
# Update with your SSL key path
location / {
proxy_pass http://192.168.1.7;
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;
}
}
then I got to one certificate that nginx refused to load so do I think its letsencrypt? No I'm sure this is a bug with nginx now you see above works for other certificates but not for this one and here is the fix I worked out
server {
listen 443 ssl;
server_name example.example.co.uk;
ssl_certificate /nginx/conf/example.example.co.uk-crt.pem; # managed by Certbot
# Update with your SSL certificate path
ssl_certificate_key /nginx/conf/example.example.co.uk-key.pem; # managed by Certbot
# Update with your SSL key path
location / {
proxy_pass http://192.168.1.7;
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;
}
}
Blink and you miss it yes \ to / what I weird bug
hope this help anyone else
I'm not quite following what exactly you're trying to ask about, but are you trying to use certbot on Windows???
I am also confused as Certbot on Windows never had the nginx plugin. That nginx config has "Managed by Certbot" notations so must have come from a Linux system. Yet it looks like you are running nginx on Windows so must have copied something by hand from a different system and did it incorrectly. At least how it looks to me.
Certbot on Windows was obsoleted by the EFF long ago. You shouldn't be using it there
The issue is more about \ to /
I have both windows and Linux Mint I likely used Linux Mint as a template so for windows I used win acme do ge the certificate the template is not the iusse its more about \ to / as said above as is I used
server {
listen 443 ssl;
server_name example.example.co.uk;
ssl_certificate /nginx\conf\example.example.co.uk-crt.pem; # managed by Certbot
# Update with your SSL certificate path
ssl_certificate_key /nginx\conf\example.example.co.uk-key.pem; # managed by Certbot
# Update with your SSL key path
location / {
proxy_pass http://192.168.1.7;
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;
}
}
that works in windows for other certificates fine but then one certificate that nginx refused until I did
server {
listen 443 ssl;
server_name example.example.co.uk;
ssl_certificate /nginx/conf/example.example.co.uk-crt.pem; # managed by Certbot
# Update with your SSL certificate path
ssl_certificate_key /nginx/conf/example.example.co.uk-key.pem; # managed by Certbot
# Update with your SSL key path
location / {
proxy_pass http://192.168.1.7;
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;
}
}
Like I said weird bug
But that line wasn't created by Certbot. It would never have put a backslash in the cert filename. Its long-deprecated Windows version never had nginx plugin to update nginx config.
Is your point that you mistyped a filename in nginx config and got an error? 
I don't understand why you think that's weird or a bug. nginx uses forward slashes on all platforms. That's documented behavior. It also isn't unique to cert filenames. It applies to any filename in its config.
Ok you seem to be look as the # hash tag which dose nothing but let me make this issue more clear for you
so there I was setting up nginx and one by one testing each certificate setting
server {
listen 443 ssl;
server_name example.example.co.uk;
ssl_certificate /nginx\conf\example.example.co.uk-crt.pem;
ssl_certificate_key /nginx\conf\example.example.co.uk-key.pem;
location / {
proxy_pass http://192.168.1.7;
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;
}
}
The above works in windows fine
Then I got to one certificate that nginx refused to load so do I think its letsencrypt? No I'm sure this is a bug with nginx now you see above works for other certificates but not for this one and here is the fix I worked out
server {
listen 443 ssl;
server_name example.example.co.uk;
ssl_certificate /nginx/conf/example.example.co.uk-crt.pem;
ssl_certificate_key /nginx/conf/example.example.co.uk-key.pem;
location / {
proxy_pass http://192.168.1.7;
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;
}
}
Blink and you miss it yes \ to / what I weird bug
hope this help anyone else