Pages:
Author

Topic: "Cannot find Signature"... What's this? (Read 836 times)

member
Activity: 133
Merit: 15
~ Fortuna Favet Fortibus ~
May 08, 2019, 07:41:08 PM
#31
I started to get this error after installing the new firmware of D3 so I did exactly the same Mike showed me how to.But Didn't work! then I realized in the www/pages/cgi-bin there is 3 file connecting each other and this three are calling each other.

"upgrade.cgi"
"upgrade_clear.cgi"
"upload_conf.cgi"

so I edited with this files in ssh editor I searched in existing "Cannot Find Signature" so I put # type before words as like Mike's codes. and worked for me. Thank you again Mike. Yes I think with the latest firmware having strong security with this 3 files I think.
legendary
Activity: 2394
Merit: 6581
be constructive or S.T.F.U

I pretty much did not look at the screenshot  Grin sorry .

i wonder which firmware is that, it's strange tho, this method always worked, but judging from what you sent me via a pm, i can only assume that this must be a new firmware which has more "enhanced security" where they have similar if function somewhere else, but anyhow as long as you can access the miner through ssh there will always be a way out.
member
Activity: 133
Merit: 15
~ Fortuna Favet Fortibus ~
there is something wrong with the way you handle the editing, :wq should not show there in the code , press "Escape key" once you are done editing , and then type

Code:
:wq

then hit enter.

what you doing there is adding a line to the code that says :wq and you are not actually saving anything.

also please refer to the complete guide here >https://bitcointalksearch.org/topic/m.48938476

Yes I figured this out and I saved without :wq look at the my screenshoot but still can't upload firmware
legendary
Activity: 2394
Merit: 6581
be constructive or S.T.F.U
there is something wrong with the way you handle the editing, :wq should not show there in the code , press "Escape key" once you are done editing , and then type

Code:
:wq

then hit enter.

what you doing there is adding a line to the code that says :wq and you are not actually saving anything.

also please refer to the complete guide here >https://bitcointalksearch.org/topic/m.48938476
member
Activity: 133
Merit: 15
~ Fortuna Favet Fortibus ~

1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?

1- yes if you use the  "x" bottom on top ,the setting won't be saved.

2- in theory the worst case scnerio is that you'll need to reset the miner. but still shit can happen.

since you are not going to do any coding , you shouldn't make any mistake, before you save just revise the code 2-3 times, compare it to the prev code you pasted here, make sure you have not deleted anything.

Ok, I ask you this since tomorrow I will post the edition step by step what you told me and ILL NOT SAVE THE CHANGE until you first see the code / photo and give me the approval.  Wink

:wq where should write on ssh editor page? after  this?

Code:
# if [ ! -f runme.sh.sig ]; then
      #  echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
#else
 #  openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
# res=$?
# if [ $res -eq 1 ]; then
 #   echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
 #else
#    if [ -f runme.sh ]; then
#   sh runme.sh
 # else
# echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
# fi
 # fi
#fi

if [ -f runme.sh ]; then
   sh runme.sh
else
       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
fi
:wq
like this?
Because I'm doing exactly the same and after writing :wq I don't close or closing the ssh editor and going to directly upgrade page D3 but still saying "Cannot Find Signature!!!"
By the way I can modify easier on the WinSCP program with editor and saving.But still got "Cannot Find Signature!!!" too at there.Can you make a video tutorial for this please?

My code is: https://imgur.com/ye1f7YV
legendary
Activity: 2394
Merit: 6581
be constructive or S.T.F.U
December 28, 2018, 05:44:15 PM
#26

The 'live' filesystem is reloaded from flash every boot. only /config is permanent.

Various other firmwares have handled this different. The only real way to fix this is a modification of the base firmware, temporarily do this mod or a variant, flash the updated base firmware.... from that point forward, all flashes should be good.

-j

makes 100% sense, dunno why hasn't this crossed my mined. thanks for the explanation.

member
Activity: 504
Merit: 51
December 28, 2018, 05:24:00 PM
#25


Glad it worked for you, it is strange tho, after you save it shouldn't return to prev code, unless you were doing something wrong, i know for sure because i restart my miners and setting are still there, but well you know, strange things happen, what matters now is that it worked out for you.

cheers and happy mining.

The 'live' filesystem is reloaded from flash every boot. only /config is permanent.

Various other firmwares have handled this different. The only real way to fix this is a modification of the base firmware, temporarily do this mod or a variant, flash the updated base firmware.... from that point forward, all flashes should be good.

-j
legendary
Activity: 2394
Merit: 6581
be constructive or S.T.F.U
December 28, 2018, 05:11:03 PM
#24


Glad it worked for you, it is strange tho, after you save it shouldn't return to prev code, unless you were doing something wrong, i know for sure because i restart my miners and setting are still there, but well you know, strange things happen, what matters now is that it worked out for you.

cheers and happy mining.
newbie
Activity: 15
Merit: 0
December 28, 2018, 03:14:39 PM
#23

1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?

1- yes if you use the  "x" bottom on top ,the setting won't be saved.

2- in theory the worst case scnerio is that you'll need to reset the miner. but still shit can happen.

since you are not going to do any coding , you shouldn't make any mistake, before you save just revise the code 2-3 times, compare it to the prev code you pasted here, make sure you have not deleted anything.

Ok, I ask you this since tomorrow I will post the edition step by step what you told me and ILL NOT SAVE THE CHANGE until you first see the code / photo and give me the approval.  Wink

WORKS!!!


at the beginning after modifying the codes and saving the pages I continued to restart the antminer and then again but this time doing the flashing, it did not work and when I checked the pages inside the PuTTY I realized that the codes were the same as before modifying them, seem when you reset the antminer (digitally) the codes return to their originality, given that I did the same thing again but this time I saved the codes and closed the PuTTY I went to flash it (with the firmware MOD) this automatically reboots and ready , I had installed the Blissz Firmware.

https://imgur.com/a/mJszoKB

What surprised me the most was how ridiculously easy it was to do all this for what it cost me to understand at the beginning.

I want to thank you mikeywith for having helped me and have patience for this, and wish you a happy new year Smiley
member
Activity: 504
Merit: 51
December 26, 2018, 05:54:10 PM
#22

1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?

1- yes if you use the  "x" bottom on top ,the setting won't be saved.

2- in theory the worst case scnerio is that you'll need to reset the miner. but still shit can happen.

since you are not going to do any coding , you shouldn't make any mistake, before you save just revise the code 2-3 times, compare it to the prev code you pasted here, make sure you have not deleted anything.

This can be solved a lot easier.
'openssl' is not used by the miner for day to day operations, so just move it out of the way and replace it with something that returns status code 0.. folk generally don't know how to use vi.

My miners are down at the moment so I don't know the file paths, but you should be able to do:

ln -sf  `which true` `which openssl`

Those are back ticks, not quotes. Assuming 'true' exists (I think it's in busybox), this would simply replace openssl with a symlink to true... which will return 0 no matter the arguments provided... and would bypass the signature check.

-j
newbie
Activity: 15
Merit: 0
December 26, 2018, 05:46:39 PM
#21

1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?

1- yes if you use the  "x" bottom on top ,the setting won't be saved.

2- in theory the worst case scnerio is that you'll need to reset the miner. but still shit can happen.

since you are not going to do any coding , you shouldn't make any mistake, before you save just revise the code 2-3 times, compare it to the prev code you pasted here, make sure you have not deleted anything.

Ok, I ask you this since tomorrow I will post the edition step by step what you told me and ILL NOT SAVE THE CHANGE until you first see the code / photo and give me the approval.  Wink
legendary
Activity: 2394
Merit: 6581
be constructive or S.T.F.U
December 26, 2018, 05:32:38 PM
#20

1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?

1- yes if you use the  "x" bottom on top ,the setting won't be saved.

2- in theory the worst case scnerio is that you'll need to reset the miner. but still shit can happen.

since you are not going to do any coding , you shouldn't make any mistake, before you save just revise the code 2-3 times, compare it to the prev code you pasted here, make sure you have not deleted anything.
newbie
Activity: 15
Merit: 0
December 26, 2018, 05:25:53 PM
#19
you need to alter the code make it look like this

Code:

# if [ ! -f runme.sh.sig ]; then
      #  echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
#else
 #  openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
# res=$?
# if [ $res -eq 1 ]; then
 #   echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
 #else
#    if [ -f runme.sh ]; then
#   sh runme.sh
 # else
# echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
# fi
 # fi
#fi

if [ -f runme.sh ]; then
   sh runme.sh
else
       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
fi

you have to add # to disable the first lines, and remove the # to active the last lines.

add # to the first 15 lines, and remove # from the next 5 lines.
---------------------
to be able to edit, you need to click letter " i" on keyboard.

when you done editing

type

Code:
:wq

then re-open the file to verify the editing worked by typing this

Code:
vi upgrade.cgi

if the edition is good save and exist by typing the following

Code:
:q

once done , restart the miner . and try to upload the firmware.

* do this at your own risk.

please make sure you don't make any mistake in the code, you don't have to TYPE or DELETE anything, just use # to disable lines, and delete # to enable lines.

your codes should like the one in the image i sent in my last post.
Being honest, it seems very simple, Add # at the beginning of the first 15 lines and delete (Key delate) the last 5 #, but now my questions are...
1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?
legendary
Activity: 2394
Merit: 6581
be constructive or S.T.F.U
December 26, 2018, 04:58:52 PM
#18
you need to alter the code make it look like this

Code:

# if [ ! -f runme.sh.sig ]; then
      #  echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
#else
 #  openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
# res=$?
# if [ $res -eq 1 ]; then
 #   echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
 #else
#    if [ -f runme.sh ]; then
#   sh runme.sh
 # else
# echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
# fi
 # fi
#fi

if [ -f runme.sh ]; then
   sh runme.sh
else
       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
fi

you have to add # to disable the first lines, and remove the # to active the last lines.

add # to the first 15 lines, and remove # from the next 5 lines.
---------------------
to be able to edit, you need to click letter " i" on keyboard.

when you done editing

type

Code:
:wq

then re-open the file to verify the editing worked by typing this

Code:
vi upgrade.cgi

if the edition is good save and exist by typing the following

Code:
:q

once done , restart the miner . and try to upload the firmware.

* do not restart the miner
*do this at your own risk.

please make sure you don't make any mistake in the code, you don't have to TYPE or DELETE anything, just use # to disable lines, and delete # to enable lines.

your codes should like the one in the image i sent in my last post.

EDITED : thanks to yonydouna and effud for correcting the restart part.
newbie
Activity: 15
Merit: 0
December 26, 2018, 03:01:16 PM
#17


no you went too far down,

search around line line no 40.

refer to the image i gave you from the Russian  website  >

https://forum.bits.media/uploads/monthly_2018_12/176069530_2018-12-0419_48_19.png.a447fba7e31d74b4d083a1a9dc1cbd56.png

you need to find these lines that he put blue rectangular, you need to find those 2 part of codes and delete them. they are usually around line no 40, but could be different , you just  need to scroll until you find them.

Yes, I realized, I had edited the post seconds before your comment  Grin
-------------------------

Code:
if [ ! -f runme.sh.sig ]; then
        echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
else
        openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
        res=$?
        if [ $res -eq 1 ]; then
                echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
        else
                if [ -f runme.sh ]; then
                        sh runme.sh
                else
                        echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
                fi
        fi
fi

#if [ -f runme.sh ]; then
#       sh runme.sh
#else
#       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
#fi

Fine, I already have the code, what's next?
legendary
Activity: 2394
Merit: 6581
be constructive or S.T.F.U
December 26, 2018, 02:41:07 PM
#16


no you went too far down,

search around line line no 40.

refer to the image i gave you from the Russian  website  >



you need to find these lines that he put blue rectangular, you need to find those 2 part of codes and delete them. they are usually around line no 40, but could be different , you just  need to scroll until you find them.
newbie
Activity: 15
Merit: 0
December 26, 2018, 01:33:17 PM
#15


ok you donig good so far, but the code is incomplete, you need to scroll down use the "down arrow" on the keyboard there will be more code.

you see this
Code:
"- upgrade.cgi 1/219 0%"

it means you are now at Line no 1 out if 219 lines. you need to click the down arrow a few times until you find  a part like this

Code:
f [ -f runme.sh ]; then
You mean this code?
Code:
#if [ -f runme.sh ]; then
#       sh runme.sh
#else
#       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
#fi

#
#    if [ -e /dev/mmcblk0p3 ]; then
#               mkdir $file.boot
#       mount /dev/mmcblk0p1 $file.boot
#       cp -rf * $file.boot/
#       umount $file.boot
#       sync
#       fi
#       if [ -e /dev/mtd8 ]; then
#               if [ -e initramfs.bin.SD ]; then
#                       echo "flash romfs"
#                       flash_eraseall /dev/mtd8 >/dev/null 2>&1
#                       nandwrite -p /dev/mtd8 initramfs.bin.SD >/dev/null 2>&1
#               fi
#
#               if [ -e uImage.bin ]; then
#                       echo "flash kernel"
#                       flash_eraseall /dev/mtd7 2>/dev/null
#                       nandwrite -p /dev/mtd7 uImage.bin 2>/dev/null
#               fi
#       fi
#fi

ant_result=`cat /tmp/upgrade_result`

# CGI output must start with at least empty line (or headers)

BTW/EDIT: I started to "read" what I could understand the Russian server and I leave you the code that I saw on the page, I do not know if it is this or the one above that needs to be modified:

Code:
if [ ! -f runme.sh.sig ]; then
        echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
else
        openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
        res=$?
        if [ $res -eq 1 ]; then
                echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
        else
                if [ -f runme.sh ]; then
                        sh runme.sh
                else
                        echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
                fi
        fi
fi

#if [ -f runme.sh ]; then
#       sh runme.sh
#else
#       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
#fi
legendary
Activity: 2394
Merit: 6581
be constructive or S.T.F.U
December 26, 2018, 10:47:53 AM
#14


ok you donig good so far, but the code is incomplete, you need to scroll down use the "down arrow" on the keyboard there will be more code.

you see this
Code:
"- upgrade.cgi 1/219 0%"

it means you are now at Line no 1 out if 219 lines. you need to click the down arrow a few times until you find  a part like this

Code:
f [ -f runme.sh ]; then
newbie
Activity: 15
Merit: 0
December 25, 2018, 02:56:10 PM
#13
ok first thing first here is a link the contains 4 different firmware for D3, mixed between bitmain and blissz , try each and everyone of them

* please scan for virus before you download, just to be safe.
https://ufile.io/oxzkc

-------------------------------------------

if everything fails then as i mentioned you need to modify the current firmware on your miner to force it to allow you a different firmware.

you will need to use a ssh tool like putty.

type the ip address of the miner in putty , keep port 22

* if message pop up > click Yes

username :root
password:admin

then you will be inside the miner.

copy paste this line

Code:
cd /www/pages/cgi-bin
    > hit enter

like this

https://i.imgur.com/8R2WCDt.jpg

then type this

Code:
vi upgrade.cgi

you will get something like this

https://i.imgur.com/veCdS0V.jpg
but yours will be different, there will be something like

Code:
If sign *** signature not found

else sh runme.sh

you need to copy paste the code for me here to modify it, if you don't understand programming.

if you do, then it would be easy, just remove the IF statment.

--------------

and if you speak russian you can visit the website > the solutation i am propsoing  is actually taken from this Russian website

https://forum.bits.media/index.php?/topic/65678-%D1%81%D1%82%D0%BE%D1%80%D0%BE%D0%BD%D0%BD%D1%8F%D1%8F-%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B0-%D0%B4%D0%BB%D1%8F-antminer-l3-%D0%BE%D1%82-blissz/&page=5&tab=comments#comment-1703686

even if you don't understand russian, you can follow my directions and then look for the picture for the upgrade file, it's in english and could be exactly like yours, if it is, just follow the picture, if it is not, just paste the code here i will modifiy it for you.

also keep in mind the default upgrade file will be locked ,you cant modify, only view. you need to click 'I' to modify it.

--------------

let us know how it goes.



Hello mikeywith, I hope you have spent a happy Christmas, I inform you that I have done so far.

First, I tried testing with the frimware that I had and as expected by me, they did not work, in fact some like the "NoFee" had already tested them before.

-------------------------------------------------

Given this, I started with the program of PuTTY with my IP and I made step by step what you indicated to me,
 - Loging, placing the password
 
Code:
cd /www/pages/cgi-bin
 
Code:
vi upgrade.cgi
(So far everything went the same as the images you placed)
 and I had this result:

Code:
login as: root
[email protected]'s password:
root@antMiner:~# cd /www/pages/cgi-bin
root@antMiner:/www/pages/cgi-bin# vi upgrade.cgi
#!/bin/sh -e

# POST upload format:
# Content-Disposition: form-data; name="file1"; filename="..."^M
# Content-Type: application/octet-stream^M
# file contents
# file contents
# file contents

file=/tmp/$$

trap atexit 0

atexit() {
        rm -rf $file
        #umount $file.boot 2>/dev/null || true
        #rmdir $file.boot 2>/dev/null || true
        sync
        if [ ! $ok ]; then
            print "

System upgrade failed

"
        fi
}

- upgrade.cgi 1/219 0%

I leave the code so I wait for the next step and how to modify the file since I am not an expert in programming (I dedicate myself more to the Hardware part  Grin)
newbie
Activity: 15
Merit: 0
December 24, 2018, 05:34:03 PM
#12
ok first thing first here is a link the contains 4 different firmware for D3, mixed between bitmain and blissz , try each and everyone of them

* please scan for virus before you download, just to be safe.
https://ufile.io/oxzkc

-------------------------------------------

if everything fails then as i mentioned you need to modify the current firmware on your miner to force it to allow you a different firmware.

you will need to use a ssh tool like putty.

type the ip address of the miner in putty , keep port 22

* if message pop up > click Yes

username :root
password:admin

then you will be inside the miner.

copy paste this line

Code:
cd /www/pages/cgi-bin
    > hit enter

like this

https://i.imgur.com/8R2WCDt.jpg

then type this

Code:
vi upgrade.cgi

you will get something like this

https://i.imgur.com/veCdS0V.jpg
but yours will be different, there will be something like

Code:
If sign *** signature not found

else sh runme.sh

you need to copy paste the code for me here to modify it, if you don't understand programming.

if you do, then it would be easy, just remove the IF statment.

--------------

and if you speak russian you can visit the website > the solutation i am propsoing  is actually taken from this Russian website

https://forum.bits.media/index.php?/topic/65678-%D1%81%D1%82%D0%BE%D1%80%D0%BE%D0%BD%D0%BD%D1%8F%D1%8F-%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B0-%D0%B4%D0%BB%D1%8F-antminer-l3-%D0%BE%D1%82-blissz/&page=5&tab=comments#comment-1703686

even if you don't understand russian, you can follow my directions and then look for the picture for the upgrade file, it's in english and could be exactly like yours, if it is, just follow the picture, if it is not, just paste the code here i will modifiy it for you.

also keep in mind the default upgrade file will be locked ,you cant modify, only view. you need to click 'I' to modify it.

--------------

let us know how it goes.




Thanks bro, I will be reporting between tomorrow and Wednesday (since today is a holiday), Merry Christmas Smiley
Pages:
Jump to: