# Blockcert testnet issues

**URL:** <https://community.blockcerts.org/t/blockcert-testnet-issues/1504>\
**Category:** Support\
**Created:** [November 19, 2018, 2:03pm UTC](https://community.blockcerts.org/t/blockcert-testnet-issues/1504 "2018-11-19T14:03:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![fspirgi](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@fspirgi](https://community.blockcerts.org/u/fspirgi)\
**Post date:** [November 19, 2018, 2:03pm UTC](https://community.blockcerts.org/t/blockcert-testnet-issues/1504/1 "2018-11-19T14:03:00Z")

</div>

Hi,

I read several articles here and tried a lot, none does solve my problem.

% python cert\_issuer/issue\_certificates.py -c conf.ini  
WARNING - Your app is configured to skip the wifi check when the USB is plugged in. Read the documentation to ensure this is what you want, since this is less secure  
INFO - This run will try to issue on the bitcoin\_testnet chain  
INFO - Set cost constants to recommended\_tx\_fee=0.000600,min\_per\_output=0.000028,satoshi\_per\_byte=250  
INFO - Processing 2 certificates  
INFO - Processing 2 certificates under work path=/Users/flaviospirgi/Documents/mit-certs/cert-issuer/data/work  
WARNING - \<urlopen error [SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed: unable to get local issuer certificate (\_ssl.c:1051)\>  
WARNING - address mnjA737RZoJ6iNaFogLLWtg8kv9DhoFgTo has a balance of 0  
INFO - Total cost will be 133500 satoshis  
ERROR - Please add 133500 satoshis to the address mnjA737RZoJ6iNaFogLLWtg8kv9DhoFgTo  
ERROR - Please add 133500 satoshis to the address mnjA737RZoJ6iNaFogLLWtg8kv9DhoFgTo  
Traceback (most recent call last):  
File “cert\_issuer/issue\_certificates.py”, line 44, in \<module\>  
tx\_id = main(parsed\_config)  
File “cert\_issuer/issue\_certificates.py”, line 36, in main  
return issue(app\_config, certificate\_batch\_handler, transaction\_handler)  
File “cert\_issuer/issue\_certificates.py”, line 16, in issue  
transaction\_handler.ensure\_balance()  
File “/Users/flaviospirgi/Documents/mit-certs/cert-tools/venv/lib/python3.7/site-packages/cert\_issuer-2.0.15-py3.7.egg/cert\_issuer/blockchain\_handlers/bitcoin/transaction\_handlers.py”, line 51, in ensure\_balance  
raise InsufficientFundsError(error\_message)  
cert\_issuer.errors.InsufficientFundsError: Please add 133500 satoshis to the address mnjA737RZoJ6iNaFogLLWtg8kv9DhoFgTo

I do have funds on mnjA737RZoJ6iNaFogLLWtg8kv9DhoFgTo. It could have something to do with the CERTIFICATE\_VERIFY\_FAILED error for which I did not find anything here. I even generated a new key and it still fails. After trying everything I could after reading similar issues here I am running out of ideas. Am I not seeing anything obvious?

Many thanks!

---

<div class="post-metadata">

**Author:** ![d.hussain](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@d.hussain](https://community.blockcerts.org/u/d.hussain)\
**Post date:** [November 25, 2018, 12:27pm UTC](https://community.blockcerts.org/t/blockcert-testnet-issues/1504/2 "2018-11-25T12:27:56Z")

</div>

Hi,

Please review below thread.

> [@Blockcert on testnet](https://community.blockcerts.org/t/blockcert-on-testnet/501):
>
> I am trying to execute cert issuer however getting insufficient balance error. however I have verified that the address has balance [https://testnet.blockexplorer.com/address/mmsyB5TbdphHD2gGAfRq3osLbdSmceERYs](https://testnet.blockexplorer.com/address/mmsyB5TbdphHD2gGAfRq3osLbdSmceERYs) INFO - Processing 2 certificates under work path=/etc/cert-issuer/work INFO - Processing 2 certificates under work path=/etc/cert-issuer/work WARNING - address mmsyB5TbdphHD2gGAfRq3osLbdSmceERYs has a balance of 0 WARNING - address mmsyB5TbdphHD2gGAfRq3osLbdSmceERYs has a balance of 0 …

Let me know if it helps.  
Regards,  
Danish

---

<div class="post-metadata">

**Author:** ![fspirgi](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@fspirgi](https://community.blockcerts.org/u/fspirgi)\
**Post date:** [November 26, 2018, 6:51am UTC](https://community.blockcerts.org/t/blockcert-testnet-issues/1504/3 "2018-11-26T06:51:30Z")

</div>

Hi Danish,

Thank you. I indeed already saw this thread and tried the things in there (like playing around with the bitcoind variable) but it didn’t help so far.

Kind regards,  
Flavio

---

<div class="post-metadata">

**Author:** ![d.hussain](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@d.hussain](https://community.blockcerts.org/u/d.hussain)\
**Post date:** [November 26, 2018, 7:04am UTC](https://community.blockcerts.org/t/blockcert-testnet-issues/1504/4 "2018-11-26T07:04:29Z")

</div>

Try removing this property and instead add below

no\_bitcoind

If it didnt help, share your configuration

---

<div class="post-metadata">

**Author:** ![fspirgi](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@fspirgi](https://community.blockcerts.org/u/fspirgi)\
**Post date:** [November 26, 2018, 7:37am UTC](https://community.blockcerts.org/t/blockcert-testnet-issues/1504/5 "2018-11-26T07:37:48Z")

</div>

Thanks, but it didn’t help.

Here’s the configuration:

issuing\_address = mnjA737RZoJ6iNaFogLLWtg8kv9DhoFgTo

unsigned\_certificates\_dir=/Users/fspirgi/Documents/mit-certs/cert-issuer/data/unsigned\_certificates

signed\_certificates\_dir=/Users/flaviospirgi/Documents/mit-certs/cert-issuer/data/signed\_certificates

blockchain\_certificates\_dir=/Users/fspirgi/Documents/mit-certs/cert-issuer/data/blockchain\_certificates

work\_dir=/Users/flaviospirgi/Documents/mit-certs/cert-issuer/data/work  
usb\_name = /Users/fspirgi/Documents/mit-certs/cert-issuer  
key\_file = .pk\_issuer

chain=bitcoin\_testnet

no\_safe\_mode  
no\_bitcoind

---

<div class="post-metadata">

**Author:** ![aronning](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@aronning](https://community.blockcerts.org/u/aronning)\
**Post date:** [November 26, 2018, 2:13pm UTC](https://community.blockcerts.org/t/blockcert-testnet-issues/1504/6 "2018-11-26T14:13:27Z")

</div>

Looks like `urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]` is your problem. Sounds like when trying to get the balance of your wallet, it’s hitting that error. Thus it doesn’t think you have a balance since it couldn’t resolve the url.

I’d google that error and see what comes of it. For example, here’s one: [https://stackoverflow.com/questions/34503206/ssl-certificate-verify-failed-error-when-scraping-https-www-thenewboston-co](https://stackoverflow.com/questions/34503206/ssl-certificate-verify-failed-error-when-scraping-https-www-thenewboston-co)

---

<div class="post-metadata">

**Author:** ![fspirgi](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@fspirgi](https://community.blockcerts.org/u/fspirgi)\
**Post date:** [November 26, 2018, 2:29pm UTC](https://community.blockcerts.org/t/blockcert-testnet-issues/1504/7 "2018-11-26T14:29:09Z")

</div>

Thanks. Yes, that’s what I thought it could be. But: This file contains the private key, checked it at least twice, looks fine and also has those required 52 bytes I learned those keys should have. Not sure whether it’s correct to check them with ssl libraries, maybe the key should have another format? Also tried to google that but didn’t find a hint (that I could understand).

---

<div class="post-metadata">

**Author:** ![aronning](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@aronning](https://community.blockcerts.org/u/aronning)\
**Post date:** [November 26, 2018, 2:43pm UTC](https://community.blockcerts.org/t/blockcert-testnet-issues/1504/8 "2018-11-26T14:43:22Z")

</div>

This error doesn’t appear to have anything to do with the bitcoin/ethereum private key. Looks like it’s a problem using python’s requests library when hitting an HTTPS endpoint.

---

<div class="post-metadata">

**Author:** ![fspirgi](https://avatars.discourse-cdn.com/v4/letter/f/ac91a4/32.png) [@fspirgi](https://community.blockcerts.org/u/fspirgi)\
**Post date:** [November 26, 2018, 2:56pm UTC](https://community.blockcerts.org/t/blockcert-testnet-issues/1504/9 "2018-11-26T14:56:51Z")

</div>

So, seems I’m looking at the wrong thing. Will try to find out where exactly the problem occurs. Many thanks in the meantime!
