Node Configs

BCHD Node Configs

Configs

Mac

Executable

Config path

Executable path

Bchd/

/Users/user-name/Library/Application Support/Bchd/bchd.conf

/Users/user-name/go/bin/bchd

Bchwallet/

/Users/user-name/Library/Application Support/Bchwallet/bchwallet.conf

/Users/user-name/go/bin/bchwallet

Bchctl/

/Users/user-name/Library/Application Support/Bchctl/bchctl.conf

/Users/user-name/go/bin/bchctl

bchwallet config

File: bchwallet.conf

username=<your-rpc-user-name>
password=<your-rpc-password>
bchdusername=<your-rpc-user-name>
bchdpassword=<your-rpc-password>
rpccert=./rpc.crt # See certificates.md
rpckey=./rpc.key # See certificates.md

bchctl config

File: bchctl.conf

bchd config

File: bchd.conf

Certificates.

Auto Generation

  • Post running the bchd on your local machine, you should be able to find the certificate and key that are generated by bchd. You can use that for local development purposes.

See Sample bchd config: https://github.com/gcash/bchd/blob/master/sample-bchd.conf rpccert=~/.bchd/rpc.cert rpckey=~/.bchd/rpc.key

Custom generation

Output files

  • ca.key: Certificate Authority private key file (this shouldn't be shared in real-life)

  • ca.crt: Certificate Authority trust certificate (this should be shared with users in real-life)

  • server.key: Server private key, password protected (this shouldn't be shared)

  • server.csr: Server certificate signing request (this should be shared with the CA owner)

  • server.crt: Server certificate signed by the CA (this would be sent back by the CA owner) - keep on server

  • server.pem: Conversion of server.key into a format gRPC likes (this shouldn't be shared)

certs.cnf

Last updated

Was this helpful?