Fix SSL-cert issue

This commit is contained in:
Кокос Артем Николаевич
2026-01-20 10:19:41 +07:00
parent e412bb7446
commit c0300e71fb
2 changed files with 15 additions and 1 deletions

View File

@@ -61,3 +61,16 @@ isort .
``` ```
> 🔒 Never commit `.env` or credentials! > 🔒 Never commit `.env` or credentials!
### Production SSL Setup (for internal Redmine)
If you get `CERTIFICATE_VERIFY_FAILED`, your corporate CA is not trusted by Python's `certifi`.
Fix it once per environment:
```bash
source .venv/bin/activate
cat /etc/ssl/certs/ca-certificates.crt >> $(python -m certifi)
```
> This appends system CA bundle to Python's certificate store. Safe and secure.

View File

@@ -12,7 +12,8 @@ def fetch_issues_by_time_entries(from_date: str, to_date: str) -> Optional[List[
redmine = Redmine( redmine = Redmine(
Config.REDMINE_URL, Config.REDMINE_URL,
username=Config.REDMINE_USER, username=Config.REDMINE_USER,
password=Config.REDMINE_PASSWORD password=Config.REDMINE_PASSWORD,
requests={'verify': '/etc/ssl/certs/ca-certificates.crt'}
) )
current_user = redmine.user.get('current') current_user = redmine.user.get('current')