[GH-ISSUE #802] OpenSSL detected, creating keys... data/rsa_key.pem: No such file or directory #556

Closed
opened 2026-03-03 01:30:32 +03:00 by kerem · 2 comments
Owner

Originally created by @brentl99 on GitHub (Jan 4, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/802

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 (Jan 4, 2020). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/802 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.
kerem closed this issue 2026-03-03 01:30:32 +03:00
Author
Owner

@mqus commented on GitHub (Jan 4, 2020):

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.

<!-- gh-comment-id:570808146 --> @mqus commented on GitHub (Jan 4, 2020): 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.
Author
Owner

@brentl99 commented on GitHub (Jan 4, 2020):

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

<!-- gh-comment-id:570812001 --> @brentl99 commented on GitHub (Jan 4, 2020): Thank you, that addressed my issue. I just had to create the "data" directory within the current working directory.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#556
No description provided.