Insufficient Funds due to SSL error


#1

Hi,

I am trying to issue certificates on bitcoin testnet. I got an error and narrowed it down to SSL certificates not working properly. I raised an issue on GitHub and have gotten no response for over a month now… Any help would be appreciated.


Blockcert on testnet
#2

Rather than an SSL error, I think there just aren’t enough satoshis in your account to write to the blockchain. The error says this:

cert_issuer.errors.InsufficientFundsError:
Please add 133500 satoshis to the address mt8vRAdRifBTrCsA4Ja1SK2DwNLknbsqVZ

The person who runs the testnet faucet website says this:

You need a certain (huge) amount of Testnet Bitcoins? Contact me

I’m guessing you have a small amount of satoshi’s in your acccount, less than you anticipated. I can’t remember how to check your testnet balance, but if you’re running this on docker (which has bitcoind installed) I’m pretty sure it’s something like this:

bitcoin-cli -testnet getbalance mt8vRAdRifBTrCsA4Ja1SK2DwNLknbsqVZ

But I don’t have bitcoind installed anymore, so if I screwed up that command, you might have to do some experimenting with the bitcoin-cli getbalance command.


#3

Thanks for your response @madison

That’s what I thought initially but I checked a testnet block explorer, and I do have enough satoshis:

https://testnet.blockexplorer.com/address/mzkqackHtDiCR2sRPMxNtKYWm9cA4WaXaH

(note that I changed the address, updated the github issue, and still got the error)


#4

@itinawi

If it’s actually a SSL certificate problem, then it could just be that your python needs to be updated. I was getting an SSL error when using cert-tools, then I believe I updated within my venv with:

pip install -U requests[security]
pip install certifi==2017.4.17

But you can check and see if your python is bad (regarding SSL certificates) with this test.

I got the aforementioned solution from the fourth response on this stack exchange thread.

That’s pretty much all I know about SSL debugging. Hope it helps. :bug:


#5

There were a couple of dependency issues that were fixed with this commit: https://github.com/blockchain-certificates/cert-issuer/commit/56d5655c18ae30ee8b17603b99580fc1fa427f08

This also manifested in spurious errors like above; please sync the latest and rebuild the docker container.

Thanks,
Kim