Skip to content

Releases: kryptohash/cgminer-khc

cgminer for Kryptohash Coin v3.7.8c

12 Jul 14:21
Compare
Choose a tag to compare

Changes since v3.7.8

Updated CURL DLL to v7.30 and OpenSSL DLLs to 1.0.1p to address FREAK and Logjam vulnerabilities. The cgminer.exe remains unchanged.

cgminer for Kryptohash Coin v3.7.8

26 Apr 23:41
Compare
Choose a tag to compare

This version replaces the current version 3.7.7.

Here is the list of changes/enhancements:

  • Updated DLLs to the latest available versions.
  • Added the "--secure" option to enhance security(*).

(*)The Secure mode allows cgminer-khc to use HTTPS protocol for RPC calls but, unlike other miner software, cgminer-khc connects only to Wallets and Pools that present a "trusted" SSL Certificate.
Why is this important? Because not checking for trusted SSL Certificates opens the door to Man-In-The-Middle attacks, where an adversary (a.k.a. Hacker) could steal your credentials and even your coins.

How to enable Secure mode for Solo mining:

Note: This should only be used if cgminer-khc runs on a different computer than the Wallet.

  1. Download OpenSSL for Windows ( https://www.openssl.org/related/binaries.html )

  2. Use openSSL command lines below to create a Self-Signed SSL Certificate for the Computer running the Wallet.

openssl genrsa -out server.pem 2048
openssl req -new -x509 -nodes -sha256 -days 3650 -key server.pem > server.cert

  1. Copy the server.pem and server.cert to your kryptohash/region0 folder

  2. Edit the kryptohash.conf file and add/uncomment these lines:

server=1
rpcport=38912
rpcuser=
rpcpassword=

  1. Enable SSL

rpcssl=1
rpcsslciphers=TLSv1.2+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@strength
rpcsslcertificatechainfile=server.cert
rpcsslprivatekeyfile=server.pem

  1. Specify the IP address of the Computer where cgminer-khc will connect from.

rpcallowip=192.168.1.1

  1. Ensure the line below is commented:

#rpcconnect=127.0.0.1

  1. Copy the server.cert file to the computer where cgminer-khc will run. Place the cert file inside the cgminer-khc-3.7.8 folder

  2. Rename the server.cert file to cacert.pem or, append the content of server.cert to the end of the existing cacert.pem file.

  3. Execute cgminer-khc using:

    cgminer --kryptohash --secure -o https://:38912 -u -p --shaders --shaders-mul <usually 8>

How to enable Secure mode for Pools:

  1. Ensure your Pool supports HTTPS for RPC calls.

  2. Download the latest cacert.pem file available at the CURL website ( http://curl.haxx.se/docs/caextract.html ) and place the file inside the cgminer-khc-3.7.8 folder.

  3. If your Pool doesn't have a SSL Certificate signed by a public CA, ask the Pool to provide you with a Self-Signed SSL Certificate in PEM format.

  4. Edit the cacert.pem file and append the Self-Signed SSL Certificate provided by your the Pool at the end of cacert.pem.

  5. Execute cgminer-khc using

    cgminer --kryptohash --secure -o https://: -u -p --shaders --shaders-mul <usually 8>