[GH-ISSUE #1] SSL certificate from own CA #3

Closed
opened 2026-03-04 00:59:34 +03:00 by kerem · 2 comments
Owner

Originally created by @Fe3lApAcUt on GitHub (Nov 3, 2023).
Original GitHub issue: https://github.com/sirtoobii/vaultwarden_ldap_sync/issues/1

Hey

I receive an error when starting docker with the following message:

2023-11-03:16:51:48 ERROR [sync.py] Something went wrong. Error: HTTPSConnectionPool(host='xx.domain.loc', port=443): Max retries exceeded with url: /admin/users (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)')))

We have our own internal CA and need to provide the root certificate to the docker I think.
Can this be done in you project?

BR Marcel

Originally created by @Fe3lApAcUt on GitHub (Nov 3, 2023). Original GitHub issue: https://github.com/sirtoobii/vaultwarden_ldap_sync/issues/1 Hey I receive an error when starting docker with the following message: `2023-11-03:16:51:48 ERROR [sync.py] Something went wrong. Error: HTTPSConnectionPool(host='xx.domain.loc', port=443): Max retries exceeded with url: /admin/users (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)')))` We have our own internal CA and need to provide the root certificate to the docker I think. Can this be done in you project? BR Marcel
kerem closed this issue 2026-03-04 00:59:34 +03:00
Author
Owner

@sirtoobii commented on GitHub (Nov 4, 2023):

Hey,

Yes this should theoretically be possible without changing the code (untested):

  • Bind mount your CA bundle into the docker container
  • Point the REQUESTS_CA_BUNDLE env var to you bind mounted CA bundle inside the container.
<!-- gh-comment-id:1793464780 --> @sirtoobii commented on GitHub (Nov 4, 2023): Hey, Yes this should theoretically be possible without changing the code (untested): - Bind mount your CA bundle into the docker container - Point the `REQUESTS_CA_BUNDLE` env var to you bind mounted CA bundle inside the container.
Author
Owner

@Fe3lApAcUt commented on GitHub (Nov 6, 2023):

Thanks, @sirtoobii! This is working.
Here is what I did:

  1. mkdir data/ssl
  2. copied the root CA certificate (rootca.crt)
  3. added "REQUESTS_CA_BUNDLE=/data/ssl/rootca.crt" to .env
  4. docker compose up -d

log showed:
2023-11-06:08:18:29 INFO [sync.py] Starting...
2023-11-06:08:18:29 INFO [sync.py] DRYRUN: True
2023-11-06:08:18:29 INFO [sync.py] LDAP server: xxx.xxx
2023-11-06:08:18:29 INFO [sync.py] Vaultwarden url: https://vw.xxx.xxx
2023-11-06:08:18:29 INFO [sync.py] Invite user xxx@xxx.ch

BR Marcel

<!-- gh-comment-id:1794298829 --> @Fe3lApAcUt commented on GitHub (Nov 6, 2023): Thanks, @sirtoobii! This is working. Here is what I did: 1. mkdir data/ssl 2. copied the root CA certificate (rootca.crt) 3. added "REQUESTS_CA_BUNDLE=/data/ssl/rootca.crt" to .env 4. docker compose up -d log showed: 2023-11-06:08:18:29 INFO [sync.py] Starting... 2023-11-06:08:18:29 INFO [sync.py] DRYRUN: True 2023-11-06:08:18:29 INFO [sync.py] LDAP server: xxx.xxx 2023-11-06:08:18:29 INFO [sync.py] Vaultwarden url: https://vw.xxx.xxx 2023-11-06:08:18:29 INFO [sync.py] Invite user xxx@xxx.ch BR Marcel
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_ldap_sync#3
No description provided.