PyPi Certificate Based Authentication in IntelliJ

Answered

How do I configure IntelliJ to use client certificates and a customer CA with pip for use with a locally hosted PyPi repository?

PyPi can be configured to use client certificates for authentication, as well as a custom CA. This is useful for integrating with locally hosted PyPi repos. We use internally signed certificates for all our systems, and have client certificates signed by the same source. An example working pip.conf:

[global]
index_url = https://localpypi.company.com/simple
cert = /Users/me/.certs/ca.pem
client-cert = /Users/me/.certs/combined.pem

This works fine when doing commands like

pip install mylocalpackage

However, inside IntelliJ, I cannot find a way to configure the repositories beyond adding them. This does provide a dialogue for "This certificate is not trusted. Do you want to trust it?" However, I cannot find any options (or documentation) for adding client certificates for authentication.

1
1 comment

Hi Jchittum! Unfortunately, it's not possible, please vote for the corresponding request: PY-26556.

0

Please sign in to leave a comment.