Did I find the right examples for you? yes no

All Samples(132)  |  Call(0)  |  Derive(0)  |  Import(132)
pyOpenSSL - A simple wrapper around the OpenSSL library

src/i/m/impacket-0.9.11/examples/rdp_check.py   impacket(Download)
    from impacket import ntlm, version
    try:
        import OpenSSL
        from OpenSSL import SSL, crypto
    except:

src/m/e/mercurial-2.9.1/mercurial/hgweb/server.py   Mercurial(Download)
    def preparehttpserver(httpserver, ssl_cert):
        try:
            import OpenSSL
            OpenSSL.SSL.Context
        except ImportError:
    def do_write(self):
        import OpenSSL
        try:
            _httprequesthandler.do_write(self)
        except OpenSSL.SSL.SysCallError, inst:
            if inst.args[0] != errno.EPIPE:
                raise
 
    def handle_one_request(self):
        import OpenSSL

src/h/g/hg-HEAD/mercurial/hgweb/server.py   hg(Download)
    def preparehttpserver(httpserver, ssl_cert):
        try:
            import OpenSSL
            OpenSSL.SSL.Context
        except ImportError:
    def do_write(self):
        import OpenSSL
        try:
            _httprequesthandler.do_write(self)
        except OpenSSL.SSL.SysCallError, inst:
            if inst.args[0] != errno.EPIPE:
                raise
 
    def handle_one_request(self):
        import OpenSSL

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/django_extensions/management/commands/runserver_plus.py   rolf(Download)
                """
                try:
                    import OpenSSL  # NOQA
                except ImportError:
                    raise CommandError("Python OpenSSL Library is "

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django_extensions/management/commands/runserver_plus.py   antisocial(Download)
                """
                try:
                    import OpenSSL  # NOQA
                except ImportError:
                    raise CommandError("Python OpenSSL Library is "

src/l/e/leekspin-0.1.3/leekspin/generator.py   leekspin(Download)
 
try:
    import OpenSSL
    import OpenSSL.crypto
except (ImportError, NameError) as error:
    print("This script requires pyOpenSSL>=0.14.0")
    raise SystemExit(error.message)
 
import OpenSSL

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Paste-1.7.2/paste/httpserver.py   hortonworks-sandbox(Download)
    def _auto_ssl_context():
        import OpenSSL, time, random
        pkey = OpenSSL.crypto.PKey()
        pkey.generate_key(OpenSSL.crypto.TYPE_RSA, 768)
 

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/paste/httpserver.py   rolf(Download)
    def _auto_ssl_context():
        import OpenSSL, time, random
        pkey = OpenSSL.crypto.PKey()
        pkey.generate_key(OpenSSL.crypto.TYPE_RSA, 768)
 

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/paste/httpserver.py   antisocial(Download)
    def _auto_ssl_context():
        import OpenSSL, time, random
        pkey = OpenSSL.crypto.PKey()
        pkey.generate_key(OpenSSL.crypto.TYPE_RSA, 768)
 

src/h/u/hue-HEAD/desktop/core/ext-py/Paste-1.7.2/paste/httpserver.py   hue(Download)
    def _auto_ssl_context():
        import OpenSSL, time, random
        pkey = OpenSSL.crypto.PKey()
        pkey.generate_key(OpenSSL.crypto.TYPE_RSA, 768)
 

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next