Python Certifi and Custom CAs
zufallsheld.de·16h·
Discuss: Hacker News
Flag this post

At my last project, I wrote a small Python utility program to create and delete secrets in Hashicorp Vault. This tool was executed inside a docker container (and the container ran in a CI-pipeline). The container also talked to some other services that use an internal CA that was added to the system-CAs (that will be important shortly).

Back to Vault: there exists a great library called hvac that lets you interact with Vault from Python.

So I wrote the program, COPY’d it into the container, installed the hvac-library inside the container and let the program run. Vault secrets got created and deleted as needed, everything was fine. Except now the connection to the others service with the internal CA no longer worked - “failed to…

Similar Posts

Loading similar posts...