I’m trying to set up a server as an explorer, so I can look at balances and transactions for addresses.I’ve set it up, I think correctly however I get no results for an address query.
I’ve so far got the cardano-sl code up and running with these commands:
curl https://nixos.org/nix/install | sh
sudo mkdir -p /etc/nix
sudo vi /etc/nix/nix.conf
binary-caches = https://cache.nixos.org https://hydra.iohk.io
binary-cache-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
git clone https://github.com/input-output-hk/cardano-sl.git
cd cardano-sl
Git checkout master
nix-build -A connectScripts.mainnetWallet -o connect-to-mainnet
./connect-to-mainnet
Please note that wallet web API uses TLS for secure communication. Requests to the API need to send a client CA certificate that was used when launching the node and identifies the client as being permitted to invoke the server API.
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure.
and a quick google search had people saying to use -k as the solution