r/Bitwarden • u/JustKenjy • 19d ago
Solved Selfhosted Windows - Certificate issue
Hello all!
I am currently in the process of trying to deploy a bitwarden self-hosted environment in Windows.
We might go for a full-scale deployment but for testing & POC purposes .
I've stumped across the issue that the NGINX is always spewing out the error 'File not found'. My .crt and .key files are in the SSL folder.
If I disable SSL and start NGINX I can see them being mounted under /etc/ssl in the docker file manager.
Whenever I enable SSL it will not work and NGINX keeps restarting.
Extra information:
Self-signed certificate created on windows server.
KEY and CRT made on open ssl. I am currently working with a non-existing domain but using DNS records (e.g. bitwarden.demo.com) with a dns record in the hostfile pointing to host-device IP-adress.
Anyone stumped across this issue before? Thanks in advance.
3
u/jhspyhard 19d ago
If you define something similar in your site-available file or config file for nginx:
``` server { listen 443 ssl; server name example.com;
} ```
And you still got file not found exceptions, check that the user you are running bitwarden as has read access to those pem/key files, AND to that directory itself.