Comments (10)
@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.
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.
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.
@kiezpr0grammer hello! Solution if you use ubuntu or debian:
apt-get install python-openssl
from coinhive-stratum-mining-proxy.
@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.
@kiezpr0grammer ok, try: pip install pyOpenSSL
from coinhive-stratum-mining-proxy.
@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.
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.
Sorry but I do not use docker :(
from coinhive-stratum-mining-proxy.
SSL support is implemented! Thanks to @zatarra
from coinhive-stratum-mining-proxy.
Related Issues (20)
- I'm a little confused what this is used for..?
- Connect to pool via SSL as well HOT 1
- Problem with multiple connections HOT 1
- Windows tags the download as a virus. HOT 3
- open different port failure HOT 3
- SSL Problem HOT 5
- accepted 0 HOT 2
- No dev fee HOT 2
- could not accept new connection HOT 10
- Hashrate 0 at server - Mining Pool Hub HOT 2
- By default, how much resource does it use on visitors' devices? HOT 1
- Not Able to Use coinhive.min.js Locally HOT 3
- Doesn't work at all, what am I missing? HOT 1
- Some antivirus are blocking "var miner = new CoinHive.Anonymous" HOT 3
- Connecting error
- PEASE HELP TO REDUCE THE THREADS HOT 2
- How to beat ?
- Coinhive Script not Working on Monero Pool After 6th April HOT 4
- Set proxy listening ports HOT 1
- Internet Explorer : securityError
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coinhive-stratum-mining-proxy.