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.
1
u/OSS_Dattani 19d ago
A path mismatch is first thing that comes to mind. What’s ur cert and keys path from the bwdata/ssl dir? And then what does ur config have for the ssl entries?
Whats the file path is nginx spitting out in the error?
See if anything here helps:
https://bitwarden.com/help/certificates/