mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #1077] Apple SMTP certificate validation error #761
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#761
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 @sherzinger on GitHub (Aug 1, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1077
Subject of the issue
Apple SMTP server cannot be used because of certificate validation error.
Your environment
Steps to reproduce
Used the settings as described here (with and without TLS) https://support.apple.com/en-us/HT202304
Not much room for error.
Relevant logs
@sherzinger commented on GitHub (Aug 2, 2020):
Possible duplicate of #1037
@BlackDex commented on GitHub (Aug 16, 2020):
As stated in #1045 already. You can try these options.
You can try to add the CA cert your self by using the startup script @jjlin created: https://github.com/dani-garcia/bitwarden_rs/wiki/Starting-a-Container#customizing-container-startup
Or you can make sure the docker host has the CA installed correctly and do a read-only mount the
/etc/ssl/certsfolder within docker by using-v /etc/ssl/certs:/etc/ssl/certs:rothis should include all the ca certs your host allows within the docker container.And you probably need to mount the following also as a read only:
-v /usr/share/ca-certificates/mozilla:/usr/share/ca-certificates/mozilla:ro@BlackDex commented on GitHub (Nov 18, 2020):
@sherzinger Did you got this working? Or do you still have issues?
@gaby commented on GitHub (Mar 5, 2022):
@BlackDex I'm also running into this issue. Adding a script with 'update-ca-certificates" still prompts the same error. Vaultwarden really needs an easy way to just provide a Custom CA. Custom CA's are super common in airgap/enterprise environments.
@BlackDex commented on GitHub (Mar 6, 2022):
@gaby did you mounted the volumes from the host or added the CA via a script?
If using the Ubuntu (and i think even Alpine) image you could try to add the CA's to
/usr/share/ca-certificatesand runupdate-ca-certificatesthat should do the trick.@gaby commented on GitHub (Mar 6, 2022):
I'd give that a try. thanks
@gaby commented on GitHub (Mar 8, 2022):
Got it working:
For future person with the same error:
init.sh
Mount
init.shto /etc/vaultwarden.shCopy your CA to a folder and then mount it to:
/path/to/your/ca/:/usr/share/ca-certificates/extras@ch4r13 commented on GitHub (Jan 18, 2024):
It's not working for me. I've got everything I suppose as you.