Poetry: Specify SSL Cert for extra index server?

Created on 11 Jan 2019  路  2Comments  路  Source: python-poetry/poetry

  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] I have searched the documentation and believe that my question is not covered.

Question

I am trying to use a private simple index that requires a custom SSL cert. With pip, I can use the --cert flag to point to the certificate. Is there an equivalent way to specify a cert in Poetry?

Most helpful comment

I'm not conviced a user should set an environment variable for an underlying package.

this should be a setting, just like pip allows you to set it. Both on the command line as well as globally/on a project level.

All 2 comments

Looks like the solution is the same as in https://github.com/sdispater/poetry/issues/745#issuecomment-448203289; I needed REQUESTS_CA_BUNDLE to point to my certificate.

I'm not conviced a user should set an environment variable for an underlying package.

this should be a setting, just like pip allows you to set it. Both on the command line as well as globally/on a project level.

Was this page helpful?
0 / 5 - 0 ratings