Error in Cert-viewer's Verifier "Checking certificate has not been tampered with [FAIL]"

Hi,

I reinstalled all companents(issuer,tools and viewer) today with git. I generate certificate with cert-tools then issued it with cert-issuer on testnet. But when i check verifier o cert-viewer it says “Checking certificate has not been tampered with [FAIL]”. I did not touch .json file. Verifier button show as below.
image

OS:

uname -a

Linux ubuntu 4.4.0-31-generic #50~14.04.1-Ubuntu SMP Wed Jul 13 01:06:37 UTC 2016 i686 i686 i686 GNU/Linux

Cert-Tools:
conf.ini is default
(cert-tools) root@ubuntu:/opt/cert/cert-tools/cert-tools# create-certificate-template -c conf.ini
Writing template to /opt/cert/cert-tools/cert-tools/sample_data/certificate_templates/test.json
Created template!
(cert-tools) root@ubuntu:/opt/cert/cert-tools/cert-tools# instantiate-certificate-batch -c conf.ini
Writing certificates to /opt/cert/cert-tools/cert-tools/sample_data/unsigned_certificates
Instantiated batch!

Cert-Issuer Output:
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 - Set cost constants to recommended_tx_fee=0.000600,min_per_output=0.000028,satoshi_per_byte=250
INFO - Processing 1 certificates
INFO - Processing 1 certificates
INFO - Processing 1 certificates under work path=/opt/cert/cert-tools/cert-tools/sample_data/work
INFO - Processing 1 certificates under work path=/opt/cert/cert-tools/cert-tools/sample_data/work
INFO - Total cost will be 133500 satoshis
INFO - Total cost will be 133500 satoshis
INFO - Starting finalizable signer
INFO - Starting finalizable signer
WARNING - 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
WARNING - 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 - Stopping finalizable signer
INFO - Stopping finalizable signer
WARNING - 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
WARNING - 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 - here is the op_return_code data: 1f9f38c8a0dee827805bcc7f1671e737b616a2e6ae960fd7fe9c81b84ed660e6
INFO - here is the op_return_code data: 1f9f38c8a0dee827805bcc7f1671e737b616a2e6ae960fd7fe9c81b84ed660e6
INFO - Unsigned hextx=0100000001b7da9a553449f81e9392d27bf46b25e14be1363928caf9510df8910c6ce793910000000000ffffffff02e0e76d01000000001976a9142caaf9cc0aab4c0c393d1c5a80964c3269374fb288ac0000000000000000226a201f9f38c8a0dee827805bcc7f1671e737b616a2e6ae960fd7fe9c81b84ed660e600000000
INFO - Unsigned hextx=0100000001b7da9a553449f81e9392d27bf46b25e14be1363928caf9510df8910c6ce793910000000000ffffffff02e0e76d01000000001976a9142caaf9cc0aab4c0c393d1c5a80964c3269374fb288ac0000000000000000226a201f9f38c8a0dee827805bcc7f1671e737b616a2e6ae960fd7fe9c81b84ed660e600000000
INFO - Preparing tx for signing
INFO - Preparing tx for signing
INFO - Starting finalizable signer
INFO - Starting finalizable signer
WARNING - 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
WARNING - 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 - Stopping finalizable signer
INFO - Stopping finalizable signer
WARNING - 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
WARNING - 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 - The actual transaction size is 267 bytes
INFO - The actual transaction size is 267 bytes
INFO - Signed hextx=0100000001b7da9a553449f81e9392d27bf46b25e14be1363928caf9510df8910c6ce79391000000008b483045022100ee82c56d80930672b1c048c009b9d1622932771c9711e69abdc32a0a6b18f77c0220270f9febe4cf68814fe8489b3c1457da6ffe2743b7680928da541831cbfa2c54014104df77db28acb95ccf60911acd686bcab4a919f370491984dee396579553379916f7fdf52acb58fe5fd22ed2f242251344fa6679f34c223510d6a1d21f521e185cffffffff02e0e76d01000000001976a9142caaf9cc0aab4c0c393d1c5a80964c3269374fb288ac0000000000000000226a201f9f38c8a0dee827805bcc7f1671e737b616a2e6ae960fd7fe9c81b84ed660e600000000
INFO - Signed hextx=0100000001b7da9a553449f81e9392d27bf46b25e14be1363928caf9510df8910c6ce79391000000008b483045022100ee82c56d80930672b1c048c009b9d1622932771c9711e69abdc32a0a6b18f77c0220270f9febe4cf68814fe8489b3c1457da6ffe2743b7680928da541831cbfa2c54014104df77db28acb95ccf60911acd686bcab4a919f370491984dee396579553379916f7fdf52acb58fe5fd22ed2f242251344fa6679f34c223510d6a1d21f521e185cffffffff02e0e76d01000000001976a9142caaf9cc0aab4c0c393d1c5a80964c3269374fb288ac0000000000000000226a201f9f38c8a0dee827805bcc7f1671e737b616a2e6ae960fd7fe9c81b84ed660e600000000
INFO - Signed hextx=0100000001b7da9a553449f81e9392d27bf46b25e14be1363928caf9510df8910c6ce79391000000008b483045022100ee82c56d80930672b1c048c009b9d1622932771c9711e69abdc32a0a6b18f77c0220270f9febe4cf68814fe8489b3c1457da6ffe2743b7680928da541831cbfa2c54014104df77db28acb95ccf60911acd686bcab4a919f370491984dee396579553379916f7fdf52acb58fe5fd22ed2f242251344fa6679f34c223510d6a1d21f521e185cffffffff02e0e76d01000000001976a9142caaf9cc0aab4c0c393d1c5a80964c3269374fb288ac0000000000000000226a201f9f38c8a0dee827805bcc7f1671e737b616a2e6ae960fd7fe9c81b84ed660e600000000
INFO - Signed hextx=0100000001b7da9a553449f81e9392d27bf46b25e14be1363928caf9510df8910c6ce79391000000008b483045022100ee82c56d80930672b1c048c009b9d1622932771c9711e69abdc32a0a6b18f77c0220270f9febe4cf68814fe8489b3c1457da6ffe2743b7680928da541831cbfa2c54014104df77db28acb95ccf60911acd686bcab4a919f370491984dee396579553379916f7fdf52acb58fe5fd22ed2f242251344fa6679f34c223510d6a1d21f521e185cffffffff02e0e76d01000000001976a9142caaf9cc0aab4c0c393d1c5a80964c3269374fb288ac0000000000000000226a201f9f38c8a0dee827805bcc7f1671e737b616a2e6ae960fd7fe9c81b84ed660e600000000
INFO - verifying op_return value for transaction
INFO - verifying op_return value for transaction
INFO - verified OP_RETURN
INFO - verified OP_RETURN
WARNING - Caught exception trying provider <bound method BlockrIOBroadcaster.broadcast_tx of <cert_issuer.blockchain_handlers.bitcoin.connectors.BlockrIOBroadcaster object at 0xb64922ac>>. Trying another. Exception=Expecting value: line 1 column 1 (char 0)
WARNING - Caught exception trying provider <bound method BlockrIOBroadcaster.broadcast_tx of <cert_issuer.blockchain_handlers.bitcoin.connectors.BlockrIOBroadcaster object at 0xb64922ac>>. Trying another. Exception=Expecting value: line 1 column 1 (char 0)
INFO - Broadcasting succeeded with method_provider=<bound method BlockExplorerBroadcaster.broadcast_tx of <cert_issuer.blockchain_handlers.bitcoin.connectors.BlockExplorerBroadcaster object at 0xb649254c>>, txid=2483bc773fdafe8cc8ca0c6416b9e282012bc5271d0023ec61b9f0f0816067de
INFO - Broadcasting succeeded with method_provider=<bound method BlockExplorerBroadcaster.broadcast_tx of <cert_issuer.blockchain_handlers.bitcoin.connectors.BlockExplorerBroadcaster object at 0xb649254c>>, txid=2483bc773fdafe8cc8ca0c6416b9e282012bc5271d0023ec61b9f0f0816067de
INFO - Broadcast transaction with txid 2483bc773fdafe8cc8ca0c6416b9e282012bc5271d0023ec61b9f0f0816067de
INFO - Broadcast transaction with txid 2483bc773fdafe8cc8ca0c6416b9e282012bc5271d0023ec61b9f0f0816067de
INFO - Your Blockchain Certificates are in /opt/cert/cert-viewer/cert-viewer/cert-viewer/cert_data
INFO - Your Blockchain Certificates are in /opt/cert/cert-viewer/cert-viewer/cert-viewer/cert_data

Testnet Transaction:
https://live.blockcypher.com/btc-testnet/tx/2483bc773fdafe8cc8ca0c6416b9e282012bc5271d0023ec61b9f0f0816067de/


image

I changed cert-tools’s conf file as below. It worked

#display_html =

Some html code

2018-05-14 13:08:54,841 - root - ERROR - Certificate has been modified
Traceback (most recent call last):
File “/opt/cert/c-cert-viewer/lib/python3.4/site-packages/cert_verifier/checks.py”, line 111, in do_execute
detect_unmapped_fields=self.detect_unmapped_fields)
File “/opt/cert/c-cert-viewer/lib/python3.4/site-packages/cert_schema/jsonld_helpers.py”, line 168, in normalize_jsonld
'There are some fields in the certificate that do not correspond to the expected schema. This has likely been tampered with. Unmapped fields are: ’ + error_string)
cert_schema.errors.BlockcertValidationError: There are some fields in the certificate that do not correspond to the expected schema. This has likely been tampered with. Unmapped fields are: http://fallback.org/**displayHtml** "

Some html code

I fixed this issue in this PR if you want to keep using the displayHtml field: