Giter VIP home page Giter VIP logo

Comments (10)

kiezpr0grammer avatar kiezpr0grammer commented on August 12, 2024 1

@vphelipe thanks for your help, i just used the python way and not the dockerway and it works like a charm 👯‍♂️

from coinhive-stratum-mining-proxy.

vphelipe avatar vphelipe commented on August 12, 2024

My solution, change to your key and crt:

from twisted.internet import ssl

root = Root('./static')
root.putChild(b"proxy", autobahn.twisted.resource.WebSocketResource(ws))
site = twisted.web.server.Site(root)
twisted.internet.reactor.listenSSL(9992,site,ssl.DefaultOpenSSLContextFactory('x.key', 'x.crt'))   
twisted.internet.reactor.run()

from coinhive-stratum-mining-proxy.

kiezpr0grammer avatar kiezpr0grammer commented on August 12, 2024

@vphelipe

when i use your solution i'l# get the following error:
File "/coinhive-stratum-mining-proxy.py", line 39, in <module> from twisted.internet import ssl File "/usr/lib/python2.7/site-packages/twisted/internet/ssl.py", line 59, in <module> from OpenSSL import SSL ImportError: No module named OpenSSL
How can i solve this error?

from coinhive-stratum-mining-proxy.

vphelipe avatar vphelipe commented on August 12, 2024

@kiezpr0grammer hello! Solution if you use ubuntu or debian:
apt-get install python-openssl

from coinhive-stratum-mining-proxy.

kiezpr0grammer avatar kiezpr0grammer commented on August 12, 2024

@vphelipe i already have installed it, but still no success -.-

python-openssl is already the newest version (16.2.0-1).
0 upgraded, 0 newly installed, 0 to remove and 79 not upgraded.

from coinhive-stratum-mining-proxy.

vphelipe avatar vphelipe commented on August 12, 2024

@kiezpr0grammer ok, try: pip install pyOpenSSL

from coinhive-stratum-mining-proxy.

kiezpr0grammer avatar kiezpr0grammer commented on August 12, 2024

@vphelipe sorry, to bother you, but i'm new to that whole docker python thing

where do i have to put it in the dockerfile? would be

Install dependencies

RUN apk add --no-cache python python-dev openssl-dev gcc musl-dev git &&
python -m ensurepip &&
rm -r /usr/lib/python*/ensurepip &&
pip install --upgrade pip setuptools pip install pyOpenSSL &&
rm -r /root/.cache

correct?

from coinhive-stratum-mining-proxy.

kiezpr0grammer avatar kiezpr0grammer commented on August 12, 2024

okay, i mangend to install it, but the build process exits with an error :(

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-DzQvvg/cffi/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-xTrgvg-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-DzQvvg/cffi/

from coinhive-stratum-mining-proxy.

vphelipe avatar vphelipe commented on August 12, 2024

Sorry but I do not use docker :(

from coinhive-stratum-mining-proxy.

x25 avatar x25 commented on August 12, 2024

SSL support is implemented! Thanks to @zatarra

from coinhive-stratum-mining-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.