deedy5/primp

Support for custom CA certs

Closed this issue · 2 comments

I'm using primp with a proxy and need to be able to provide my own CA certs. Currently using verify=False as a workaround. Can you consider this feature request? Thanks

@deedy5 your reply here made me realized there might be a workaround where I copy/install my custom CA cert in a specific location and it will automatically be used by primp/rquest. Can you share some tips on that if it's an option?

Implemented in v0.6.0

import certifi
import primp

resp = primp.Client(impersonate="safari_17.5", ca_cert_file=certifi.where()).get(
    "https://foxnews.com"
)
print(resp.text_rich)