Advertisement
Guest User

pynetbox_ssl

a guest
Jul 7th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. >>> import pynetbox
  2. >>> nb = pynetbox.api(
  3. ... 'https://netbox.url',
  4. ... token='XXX'
  5. ... )
  6.  
  7. >>> nb.dcim.devices.all()
  8.  
  9. <snipped>
  10.  
  11.     raise SSLError(e, request=request)
  12. requests.exceptions.SSLError: HTTPSConnectionPool(host='netbox.url', port=443): Max retries exceeded with url: /api/dcim/devices/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement