README 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ================
  2. urllib2pyopenssl
  3. ================
  4. Description
  5. ===========
  6. This is a library to enable urllib2 to be used with SSL sockets from pyOpenSSL instead of the built in ssl library. A script is provided to exercise it:
  7. urllib2pyopenssl_get::
  8. - Utility to fetch data using HTTP or HTTPS GET from a specified URL.
  9. Prerequisites
  10. =============
  11. This has been developed and tested for Python 2.6 (compiled with HTTPS support).
  12. pyOpenSSL
  13. Installation
  14. ============
  15. Installation can be performed using easy_install, e.g.::
  16. easy_install urllib2pyopenssl-0.1.0-py2.6.egg
  17. Running urllib2pyopenssl_get
  18. ============================
  19. Parameter::
  20. url The URL of the resource to be fetched
  21. Options::
  22. -h, --help Show help message and exit.
  23. -c FILE, --certificate=FILE
  24. Certificate file - defaults to $HOME/credentials.pem
  25. -k FILE, --private-key=FILE
  26. Private key file - defaults to the certificate file
  27. -t DIR, --ca-certificate-dir=DIR
  28. Trusted CA certificate file directory.
  29. -d, --debug Print debug information - this may be useful in solving problems with HTTP
  30. or HTTPS access to a server.
  31. -f FILE, --fetch=FILE Output file
  32. -v, --verify-peer Verify peer certificate.