Forum Rule: Always post complete source code & details to reproduce any issue!
Page 1 of 2 1 2 LastLast
Results 1 to 25 of 36

Thread: Unable to download Teensyduino.exe

  1. #1
    Member
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    50

    Unable to download Teensyduino.exe

    Hi,
    Every time I attempt to download Teensyduino.exe on Windows 10 I get "The signature of this program is corrupt or invalid.".
    I have paused antivirus software whilst the download takes place and unchecked "Check for signatures on downloaded programmes" in IE10's advanced settings.
    Can anyone help.

  2. #2
    Member
    Join Date
    Nov 2015
    Location
    New York
    Posts
    64
    hmm,

    I haven't had that error, but I have had the "untrusted program" while INSTALLING teensyduino as well as "unsigned driver" when getting the driver installed. I had to do a bunch of loop-d-loops to get around the mandatory requirements that windows 10 imposes on software nowadays. I am realizing Windows 10 is just a pain in the ass when trying to install anything. Maybe try contacting Microsoft, I couldn't find that error on google.

  3. #3
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    11,981
    <edit> - this is on download? That would take extra blocking enabled - I may get warned "this isn't commonly downloaded" - but just ignore that and go to downloads, if you acknowledge that it will delete the file? I would have done the download with IE not EDGE?

    Download and install - Worked well for me on Win 10. You might right click the EXE and check to unblock. Then right click 'run as administrator'. Some install once asked 'do you want to run this untrusted app' - but it worked.

    Make sure you have a clean valid download. I've put on python and some other things with no issues. Including the app for my phone which may have been the one with the flag warning about untrusted - or it may have been TYQT. All worked no problem.
    Last edited by defragster; 02-07-2016 at 11:54 PM.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,294
    I don't understand why it's failing. Here's what I see if I try to check the signature on Windows 10.

    Click image for larger version. 

Name:	Capture.jpg 
Views:	110 
Size:	100.4 KB 
ID:	6310
    (click for full size)

  5. #5
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,294
    Is there any chance your computer's clock is set in the future, beyond October 27, 2016? Or in the past, before October 27, 2013? Or maybe even before Jan 5 this year? (when this copy of Teensyduino was compiled and signed)

    In theory, this signature is supposed to have a "timestamp" so it remains valid after PJRC code signing certificate expires (and I have to pay the tax again to Comodo....) But to be honest, I've never really checked this. I usually publish a new version of Teensyduino every few months, and I get the 3 year certificate option when I renew with Comodo, so it's rare to have a copy of the installer which depends on the timestamp to stay valid.
    Last edited by PaulStoffregen; 02-08-2016 at 09:44 AM.

  6. #6
    Member
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    50
    Quote Originally Posted by PaulStoffregen View Post
    Is there any chance your computer's clock is set in the future, beyond October 27, 2016? Or in the past, before October 27, 2013? Or maybe even before Jan 5 this year? (when this copy of Teensyduino was compiled and signed)

    In theory, this signature is supposed to have a "timestamp" so it remains valid after PJRC code signing certificate expires (and I have to pay the tax again to Comodo....) But to be honest, I've never really checked this. I usually publish a new version of Teensyduino every few months, and I get the 3 year certificate option when I renew with Comodo, so it's rare to have a copy of the installer which depends on the timestamp to stay valid.
    Thanks for the quick reply...I have overcome the problem by just closing the warning message.
    Like yourself I have checked the Certificate on the file and it is reported as OK.
    I was just worried that your file might have gotten corrupted some how.

    I still get the error message but the file is OK..so carry on as normal.

    Regards
    Bob B

  7. #7
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,294
    Oh, maybe it's caused by this?

    https://technet.microsoft.com/library/security/3123479

    Looks like the signature is using SHA1.

  8. #8
    Member
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    50
    Yep, that looks like it. Caused me palpitations for a while. Now I know about it, not a problem.

  9. #9
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,294
    Please give this file a try. Would really like to know if this makes the error go away....

    http://www.pjrc.com/teensy/td_127/teensyduino2.exe

    I've signed this copy with SHA2.

  10. #10
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,294
    Ugh, looks like Windows XP can't understand SHA2 signatures. Haven't tried Vista, 7 or 8 yet....

    It's also not clear (at least to me) if the part from Comodo is using SHA1 or SHA2. Not sure how to check that?

  11. #11
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,294
    Ugh, maybe this means the part from Comodo is also using SHA1.

    Click image for larger version. 

Name:	Capture.PNG 
Views:	103 
Size:	158.6 KB 
ID:	6312

    Please let me know if that files works? If not, looks like I'm going to have to figure out how to get this certificate reissued from Comodo. Not looking forward to that....

  12. #12
    Member
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    50
    Tried it on Win10 and Win7 unfortunately same problem on both, reports Corrupt or Invalid Signature.
    I downloaded with Getright and there was no problem at all.
    I tried yesterday downloading with Getright and the download speed was limited to 2X 4bps so not too good. That limit was not applied to your later Teensyduino file.

  13. #13
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,294
    Well, later today I'll look into how we can get an updated cert from Comodo using SHA2.

    Please keep following this thread, if you can. I know it's already "solved" for you... but I could really use your help to check if updating the cert and signature makes this problem completely go away.

  14. #14
    Member
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    50
    No problem....well, unfortunately a problem for you which you no doubt did not need.
    I will keep an eye on the thread and do what I can to help.

  15. #15
    Member
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    50
    Quote Originally Posted by PaulStoffregen View Post
    Well, later today I'll look into how we can get an updated cert from Comodo using SHA2.

    Please keep following this thread, if you can. I know it's already "solved" for you... but I could really use your help to check if updating the cert and signature makes this problem completely go away.
    Having to go offline now for about 3 hrs. Then will be able to nip in for about an hour.
    After that it will be 0800 UK Time tomorrow.

  16. #16
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,294
    We bought the Comodo cert through Tucows in 2013. Looks like they no longer sell certificates, or even have the "developer" part of their website anymore.

    I've logged into Comodo's site. They have a tool to replace the certificate. Sadly, it doesn't seem to work. It says is was successful, but then there's no cert stored on my machine. Grrrr....

    Looks like we might end up just having to buy a new cert 8 months early.

    On the plus side, this article on Comodo's website about dual signing for compatibility with Windows XP and Vista.

    https://support.comodo.com/index.php...56-information

    There's also some encouraging news about how to do it with osslsigncode. That's the utility I actually use... all the Windows software I make is actually built on a Linux system using mingw as a cross compiler.

    http://stackoverflow.com/questions/1...ith-timestamps

  17. #17
    Senior Member
    Join Date
    Dec 2014
    Posts
    304
    looks like Windows XP can't understand SHA2 signatures
    Luckily, you don't need to actually worry about Windows XP anymore. Approximately nobody (except Chinese pirates) is running it these days!
    (Windows XP was released 15 years ago.)
    (It also doesn't actually support any new machine built in the last few years ...)

    Also, the Microsoft article suggests a work-around you can keep using for years to come :-)

    Files timestamped before January 1, 2016, will continue to be trusted.

  18. #18
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,294
    Ok, I think I might have it now! ...after spending $265 for a new cert and doing quite a bit of fiddling with build settings...

    Please give this one a try.

    http://www.pjrc.com/teensy/td_127/teensyduino3.exe

  19. #19
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,919
    Works for me.

    Edit: Win 10
    Last edited by Frank B; 02-09-2016 at 06:36 PM.

  20. #20
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,294
    Can anyone give this a try on Vista and/or XP? Or other versions?

    We're looking to see whether the file is known to be published from PJRC (hopefully with a nice message), or from "unknown" (with a nasty warning).

  21. #21
    Junior Member cms's Avatar
    Join Date
    Aug 2013
    Location
    Ontario, Canada
    Posts
    6
    Paul, the file you posted today works for me under Windows 8.1.

  22. #22
    Senior Member Koromix's Avatar
    Join Date
    Dec 2013
    Location
    Lille, France
    Posts
    200
    teensyduino3.exe works for me under XP and Windows 10.

    Click image for larger version. 

Name:	teensyduino3-xp-win10.png 
Views:	104 
Size:	24.1 KB 
ID:	6335

  23. #23
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    11,981
    Works and looks good on Win7 [ edit: Win7 ULTIMATE ]:
    Click image for larger version. 

Name:	TeensyCert.png 
Views:	96 
Size:	12.6 KB 
ID:	6337

    Still had to (right click properties) UNBLOCK as it was downloaded.
    Last edited by defragster; 02-10-2016 at 07:44 AM.

  24. #24
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,294
    Thanks for checking!

    I've updated the main download, just replaced it with the teensyduino3.exe one.

    Looks like Arduino is going to have this same problem on their next release, since they're also still using SHA1. I opened a new issue to let them know.

    https://github.com/arduino/Arduino/issues/4552

  25. #25
    Member
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    50
    You probably know bye now, but works OK on Win10 Pro and Win7 Pro. Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •