Stratum+ssl configuration #1206
Replies: 14 comments 4 replies
-
You need your certificate in PKCS12 (file ending with .pfx) format. A Linux typical X509 setup is not supported. There are plenty of how tos out there for the conversion of X509 .pem/.key files to pfx. |
Beta Was this translation helpful? Give feedback.
-
how can i setup after get this pem key and how get this certificate which commands any guide |
Beta Was this translation helpful? Give feedback.
-
This a SSL problem and not directly related to miningcore. However, here is a link to several HowTos: https://gprivate.com/5yie0 |
Beta Was this translation helpful? Give feedback.
-
ok and how setup port for ssl and other |
Beta Was this translation helpful? Give feedback.
-
i set letsencrypt and covert to pfx and after run pool i see this error => Pool Endpoint: /var/lib/certs/domain.name.pfx is not valid or does not include the private key and cannot be used |
Beta Was this translation helpful? Give feedback.
-
All possible options are explained in the source: |
Beta Was this translation helpful? Give feedback.
-
Again, this is a SSL issue and not for Miningcore, as long as everything is configured correctly. You have to include the certificate and your private key in the .pfx file. This should also be mentioned in nearly every tutorial from the link I gave you above. Also is it mandatory to set a pasword for the pfx file during creation. @oliverw maybe move this to discussions. This isn't a bug or issue. |
Beta Was this translation helpful? Give feedback.
-
i generated pfx file and start pool but see error of this => Pool Endpoint: /var/lib/certs/domain.name.pfx is not valid or does not include the private key and cannot be used |
Beta Was this translation helpful? Give feedback.
-
Probably best to not use let's encrypt to do this. You have only limited control over the private key there. The error itself says that there is no private key. Then you took your previous generated private key and the certificate from your CA and put them into the configuration or merged them with openssl to a pfx. Now, with Let's encrypt, the whole procedure is full automatic. From the generation of the key and csr and retrival of the crt where let's encrypt is also your CA. Short hack around this issue is to use a reverse proxy with let's encrypt support (traefik, haproxy, nginx par example) in front of your stratum proxy and terminate SSL there. For full functionality of miningcore in this setup you need to enable tcpProxyProtocol in miningcore and proxyprotocol in the reverse proxy. I asked about this in the discussions. |
Beta Was this translation helpful? Give feedback.
-
i buy ssl and setup but still same issue |
Beta Was this translation helpful? Give feedback.
-
Most likely there is some misstake during the generation of the pfx file with your crt and your key. Best is to inspect your pfx after the geneartion with openssl, if both parts are in it. It is mandatory to set a password during the generation of the pfx file and use the same password in your miningcore configuration. |
Beta Was this translation helpful? Give feedback.
-
Would love to support this but .NET Core's support for this was lacking when SSL support was added. Would need to check again if there are improvements. |
Beta Was this translation helpful? Give feedback.
-
i put this command its show me these details MAC: sha1, Iteration 2048 issuer=C = GB, ST = Greater Manchester, L = Salford, O = Sectigo Limited, CN = Sectigo RSA Domain Validation Secure Server CA -----BEGIN CERTIFICATE----- |
Beta Was this translation helpful? Give feedback.
-
For those who haven't figured it out
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
can some one tell me how configure stratum+ssl:// with miningcore
Beta Was this translation helpful? Give feedback.
All reactions