Hello,
I am trying to install bitwarden_rs alongside an existing WordPress installation (all no docker, since my current WordPress and Nginx are not setup in docker). In order to try I setup a clone of my current server as testserver. I followed:
And
https://nickhuber.ca/blog/bitwarden-rs-without-docker
As far as I can tell successfully and installed rust and nodejs latest versions (I adjusted the versions to 14.15.3 for nodejs and 12.17.1 for bitwarden_rs).
Additionally I setup a bitwarden nginx config however without SSL since I am running it on a testserver and I am accessing the testserver directly via itâs IP and not a domain name.
Problem is, I am getting a 502 Bad Gateway error.
After further investigation and running the bitwarden_rs binary located in /opt/bitwarden
I am getting the following:
/--------------------------------------------------------------------
| Starting Bitwarden_RS |
| Version 1.17.0-175f2aea |
|--------------------------------------------------------------------|
| This is an unofficial Bitwarden implementation, DO NOT use the |
| official channels to report bugs/features, regardless of client. |
| Send usage/configuration questions or feature requests to: |
| *removed due to new user link restriction |
| Report suspected bugs/issues in the software itself at: |
| *removed due to new user link restriction |
--------------------------------------------------------------------/
[INFO] No .env file found.
[2020-12-21 14:52:12.323][bitwarden_rs][INFO] JWT keys donât exist, checking if OpenSSL is availableâŚ
OpenSSL 1.1.1f 31 Mar 2020
[2020-12-21 14:52:12.331][bitwarden_rs][INFO] OpenSSL detected, creating keysâŚ
genrsa: Canât open âdata/rsa_key.pemâ for writing, No such file or directory
Canât open data/rsa_key.pem for reading, No such file or directory
140238282646848:error:02001002:system library:fopen:No such file or directory:âŚ/crypto/bio/bss_file.c:69:fopen(âdata/rsa_key.pemâ,ârâ)
140238282646848:error:2006D080:BIO routines:BIO_new_file:no such file:âŚ/crypto/bio/bss_file.c:76:
unable to load Private Key
Canât open data/rsa_key.der for reading, No such file or directory
140316403193152:error:02001002:system library:fopen:No such file or directory:âŚ/crypto/bio/bss_file.c:69:fopen(âdata/rsa_key.derâ,ârbâ)
140316403193152:error:2006D080:BIO routines:BIO_new_file:no such file:âŚ/crypto/bio/bss_file.c:76:
unable to load Private Key
[2020-12-21 14:52:12.356][bitwarden_rs][ERROR] Error creating keys, exitingâŚ
I donât know where to go from here. I also got to admit I am a hobbyist and tech enthusiast, but not a professional programmer or web developer.
I like self hosting and I have setup quite a few VPS. This just to let you know to what degree my knowledge extends. So please be patient with me if I am not directly able to follow your responses right away.
Any help is appreciated. Also if I should be doing it a total different way please let me know. My ultimate goal is Wordpress and Bitwarden_RS on the same VPS on two different subdomains.
Thank you for your help! Happy Holidays!