Feb-27-2020, 03:48 AM
This might be a dumb question -
in the command line, python -m requests.cert gives result:
/etc/pki/tls/certs/ca-bundle.crt
How is the right way to get the result inside python script?
in the command line, python -m requests.cert gives result:
/etc/pki/tls/certs/ca-bundle.crt
How is the right way to get the result inside python script?
#!/usr/bin/env python import requets result=requests.cert print(result)The script above returns result:
Output:<module 'requests.certs' from '/usr/lib/python2.7/dist-packages/requests/certs.pyc'>
not sure why it is like this. I would like to get /etc/pki/tls/certs/ca-bundle.crt