This repository was archived by the owner on Oct 20, 2023. It is now read-only.
Replies: 2 comments 3 replies
-
You realize that 99% of the miners do not validate the server cert by default? For mining you can get away with a basic self-signed certificate generated by OpenSSL. 😁 |
Beta Was this translation helpful? Give feedback.
3 replies
-
@snoby . You can also use the certificates created by letsencrypt. I have it running on my pool. Took a little while to figure out why it kept giving errors. You have to keep them in the directory made by letsencrypt. If you move the certificates you will get errors. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So digging around I never found a full answer on how to do ssl termination with miningcore.
First thing i tried was getting a cert from letsencrypt then turning that into a pfx file. No matter what I did I couldn't get MC to accept the cert. With or without a passphrase. So I decided to setup an nginx reverse proxy to terminate the ssl.
The next thing I did was setup certbot with the manual command to get a wildcard cert. I ran cert bot through a docker container and the certificate was stored in a docker volume:
This runs and asks you to do some interactive stuff, you can google what you have to do here.
Next I setup an nginx container and config file that mounts the certbot_certs volume
nginx config
Where MC lives at ip address 10.0.0.225 and the stratum port is port 8880
The command to run the nginx reverse proxy is below, I build the nginx.conf file into the container, I'm just being lazy I'm sure I can also just bind mount it.
And finally the stratum definition in MC where '10.0.0.34" is the ip address of the nginx container that is doing the reverse proxy ssl termination.
This did add 1 to 2 ms to the latency of the miner.
Hope this helps!
Beta Was this translation helpful? Give feedback.
All reactions