OpenSSL detected, creating keys... data/rsa_key.pem: No such file or directory #1856

Closed
opened 2025-10-09 17:33:15 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @brentl99 on GitHub.

I have built bitwarden_rs v2.10.1 with node v11.14.0 and mariadb 5.5 on CentOS 7 without docker.
When I startup bitwarden_rs I get the following error:
OpenSSL detected, creating keys... data/rsa_key.pem: No such file or directory

Can someone tell me where the "data" directory is, or is it supposed to be?
"openssl version -a" provides me with a OPENSSLDIR of "/etc/pki/tls" which does not have "data" in the path so I presume that bitwarden has the key path built in somewhere.

Thank you.

Originally created by @brentl99 on GitHub. I have built bitwarden_rs v2.10.1 with node v11.14.0 and mariadb 5.5 on CentOS 7 without docker. When I startup bitwarden_rs I get the following error: OpenSSL detected, creating keys... data/rsa_key.pem: No such file or directory Can someone tell me where the "data" directory is, or is it supposed to be? "openssl version -a" provides me with a OPENSSLDIR of "/etc/pki/tls" which does not have "data" in the path so I presume that bitwarden has the key path built in somewhere. Thank you.
Author
Owner

@brentl99 commented on GitHub:

Thank you, that addressed my issue. I just had to create the "data" directory within the current working directory.

@brentl99 commented on GitHub: Thank you, that addressed my issue. I just had to create the "data" directory within the current working directory.
Author
Owner

@mqus commented on GitHub:

the data directory is created in the directory from which you start bitwarden_rs (PWD). for example, if you start it in the console via calling

$ /bin/bitwarden_rs

while you are in the directory /home/myuser, it will try to create it as /home/myuser/data (the location of the binary is not relevant). if bitwarden_rs doesn't have the neccessary rights to do so, it will fail in the manner you described.
Afaik, this has nothing to do with openssl itself.

@mqus commented on GitHub: the `data` directory is created in the directory from which you start bitwarden_rs (PWD). for example, if you start it in the console via calling ``` $ /bin/bitwarden_rs ``` while you are in the directory `/home/myuser`, it will try to create it as `/home/myuser/data` (the location of the binary is not relevant). if bitwarden_rs doesn't have the neccessary rights to do so, it will fail in the manner you described. Afaik, this has nothing to do with openssl itself.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#1856