mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Thread 'main' panicked at 'Error decoding public RSA Key. InvalidKeyFormat': src/auth.rs:40 #1075
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KnightTim on GitHub (Jul 11, 2021).
Subject of the issue
After attempting to upgrade from Version 1.21.0 to Version 1.22.1 when I try to start the service with v1.22.1 I get:
Process: 24471 ExecStart=/opt/bitwarden/bitwarden_rs (code=exited, status=101)If I run the executable on the command line it displays the following error:
The rsa_key.pem file is UTF-8 format with unix style line feeds. The rsa_key.pub.pem is blank.
I believe it would be a security risk to share my rsa_key files.
Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Install method: Built from source (following this guide)
Clients used: N/A
Reverse proxy and version: NGINX, but N/A in this case.
MySQL/MariaDB or PostgreSQL version: SQLite
Other relevant details: Likely related to this commit:
46e0f3c43aSteps to reproduce
Update an existing built from source install of vaultwarden v1.22.0 or earlier by replacing the previous executable file with the new one of v1.22.1.
Expected behaviour
No crash
Actual behaviour
a panic and crash when trying to read RSA keys
Troubleshooting data
👆 See description above.
@KnightTim commented on GitHub (Jul 11, 2021):
Nevermind, I figured out the issue.
When I built the latest version of the server the storage on my server was filled and no new files could be written. When I ran the latest version it created rsa_key.pub.pem but was unable to write any data to the file, so it was blank.
I deleted the blank file and reran the latest server version and the following lines were displayed:
Looks like it's all good now. Sorry to bother you and thanks again for this awesome project.