Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMRigCCServer: HTTP Daemon failed to start when "use-tls" : true in config_cc.json #103

Closed
adi3yz opened this issue Apr 23, 2018 · 21 comments

Comments

@adi3yz
Copy link

adi3yz commented Apr 23, 2018

i use this
Option 1 - Generate TLS certificates
openssl genrsa -out server.key 1024
openssl req -days 365 -out server.pem -new -x509 -key server.key
copy both file to xmrigcc folder but when i run ccserver
HTTP Daemon failed to start.

@Bendr0id
Copy link
Owner

Bendr0id commented Apr 23, 2018 via email

@adi3yz
Copy link
Author

adi3yz commented Apr 23, 2018

use windows 10, create pem and key using openssl-win64 1.1.0h
btw how to change ccserver time interval check client? bcoz i set client update to cc 180s
and now dashboard keep showing client offline

@ariadarkkkis
Copy link

I have same problem on windows.I used Gobetween (http://gobetween.io/downloads.html) to manage tls and redirect to cc without tls option enabled.

@Bendr0id
Copy link
Owner

btw how to change ccserver time interval check client? bcoz i set client update to cc 180s
and now dashboard keep showing client offline

In index.html file you'll find there vars. Just modify them for your needings. The TRESHOLD is the one you should increase. Maybe 240 or 300 * 1000 is a good candidate for you.

    var TRESHOLD_IN_MS = 60 * 1000; 
    var RELOAD_INTERVAL_IN_MS = 10 * 1000;

@Bendr0id
Copy link
Owner

On the SSL problems i started investigation. Currently its unclear what is goind wrong on Windows. But it seems that even the sample app from libmicrohttpd with tls isnt working on Windows.

@lost-bro
Copy link

Good day Bendr0id
Just want to confirm that I am experiencing the same issue: The TLS option (windows 7 box) for CCserver is also giving the "HTTP Daemon failed to start." error. I compiled from code and get the same results.
Is there a work-around for this issue? I finally managed to get Xmrig-proxy interfaced w/ a front-end TLS
proxy to have all miner > proxy communication encrypted. Would be super nice to also get the CCServer > miner communications encrypted.
Thanks in advance
take care, peace
lost_bro

@Bendr0id
Copy link
Owner

I will start looking into this.

@Bendr0id
Copy link
Owner

I finally found the root cause. It's due to libmicrohttpd isn't compiled with tls support. Either i find a version which has it build in or i need to compile it on my own..

Any help appreciated

@mk148a
Copy link

mk148a commented Nov 3, 2018

libmicrohttpd

hi, do you have any update? This issue is continue for me :S

@Bendr0id
Copy link
Owner

Bendr0id commented Nov 3, 2018

Build libmicrohttpd with TLS support and link against it when building xmrigCC. That will solve it.

@Bendr0id
Copy link
Owner

Bendr0id commented Nov 3, 2018

Or just host xmrigCCServer on a linux system.

@mk148a
Copy link

mk148a commented Nov 12, 2018

Or just host xmrigCCServer on a linux system.

i am trying on linux but same result, can you help for step by step?

@Bendr0id
Copy link
Owner

@rASSSOL
Copy link

rASSSOL commented Apr 27, 2019

Hi! I Have a same problem.
I use this:
Option 1 - Generate TLS certificates
openssl genrsa -out server.key 1024
openssl req -days 365 -out server.pem -new -x509 -key server.key
copy both file to CCserver folder but when i run CCserver it's failed to start. But xmrigCCproxy works with tls.
Win10 x64, last versions xmrigCCproxy and xmrigCC. Termux Openssl 1.1.1b 26 Feb 2019.

@GjBrutello
Copy link

  • VERSIONS: XMRigCC/1.9.3 (based on XMRig) libuv/1.23.0 MSVC/2017 (RELEASE with TLS)
  • PUSHSERVICE: Disabled
  • COMMANDS: quit
    [2019-05-26 20:17:00] HTTP Daemon failed to start.

No one version windows support the HTTPS Daemon. I want to encrypt traffic on the local network.

@Bendr0id
Copy link
Owner

Bendr0id commented May 26, 2019

The problem is that the http third party library which is used doesn't support windows tls. If you want to have it running with TLS use linux or WSL (for example Ubuntu) with the Linux version from the release page.

@GjBrutello
Copy link

then it's weird but xmrig-proxy works just fine without any haproxy and Ubuntu. Maybe you could make a fork of its libs? Proof: https://savepic.pro/image/NcGpj
xmrig_ssl

@Bendr0id
Copy link
Owner

It's not wierd. XMRigCC minerwise is also able todo full TLS on windows. Problem is the http server part. Xmrig-proxy is using ssl for stratum only. (Connection proxy to pool and Miner to proxy) the API of xmrig-proxy doesn't support https. So it's exactly the same for cc server.

@Bendr0id
Copy link
Owner

XMRigCC server part is not a proxy!

@distributorofpain
Copy link

Thanks for putting this app together(works good). Having the same issue with Windows 10, i see its basically not supported at this time. Thought i was generating certificates wrong, so i kept trying different things until i did a quick search in the issues section(and found this).

Could someone possibly make a note on the wiki page(assuming a fix is not imminent)?

@Bendr0id
Copy link
Owner

Fixed in #2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants