Fix SSL-cert issue
This commit is contained in:
13
README.md
13
README.md
@@ -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.
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user