mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #290] Unable to connect via HTTPS (RSA_padding_check_PKCS1_type_1:block type is not 01) #157
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#157
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @TomasTokaMrazek on GitHub (Dec 14, 2018).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/290
I'm using Synology NAS with configured nginx reverse proxy and docker. Almost everything was set up via GUI, so there might be other issue. Anyway, here's snippert of docker inspect HostConfig
nginx configuration:
Certificate is generated automatically by Let's Encrypt and is most definitely valid, but it's primary domain is different, it's acutally dsm.customdomain.cz with alias to bitwarden.*.cz
Error raised in nginx reverse proxy error.log
2018/12/14 01:33:50 [crit] 2372#2372: 62723 SSL_do_handshake() failed (SSL: error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01 error:04067072:rsa routines:RSA_EAY_PUBLIC_DECRYPT:padding check failed error:1408D07B:SSL routines:ssl3_get_key_exchange:bad signature) while SSL handshaking to upstream, client: 83...**, server: bitwarden.customdomain.cz, request: "GET / HTTP/1.1", upstream: "https://127.0.0.1:16443/", host: "bitwarden.customdomain.cz"
I would normally suspect that the error is on my side, but I have the set up quite a few other services with same proxy settings, albeint not in docker. I also tried to remove rsa_key from /data volume, since I was previously logged via HTTP.
@TomasTokaMrazek commented on GitHub (Dec 14, 2018):
Ok, I found the issue.
ROCKET_TLS needs a path to the full chain (cert + chain), not just a chain. Closing and keeping for further reference.
By the way, Synology DSM Certificate export does not include full chain, you have to create it by simply copying cert and chain into one file.
@geimist commented on GitHub (Dec 14, 2018):
I configured the DiskStation to create the Let's Encrypt certificate including an alias for Bitwarden. A script checks daily if the certificate has been renewed and copies it to the mounted Bitwarden SSL folder if necessary.
Here you can find the script [LINK]
@aledexter commented on GitHub (May 1, 2020):
Do you have a link to any guide to do it?
Generation of selfsigned Sino certificates and, after that, in what order we have to copy and paste into one file?