Python Certifi and Custom CAs
zufallsheld.de·10w·
Discuss: Hacker News

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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help