This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 197839 - NetBeans installer might harm your computer :-)
Summary: NetBeans installer might harm your computer :-)
Status: RESOLVED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: pgebauer
URL:
Keywords:
: 88441 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-18 14:04 UTC by Tomas Hurka
Modified: 2011-10-04 22:28 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans installer in IE 9.0 (95.17 KB, image/png)
2011-04-18 14:04 UTC, Tomas Hurka
Details
warning dialog when starting installer (10.78 KB, image/png)
2011-09-14 11:26 UTC, Ondrej Vrabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2011-04-18 14:04:21 UTC
Created attachment 107814 [details]
NetBeans installer in IE 9.0

Steps to reproduce:
Download NetBeans 7.0 with Internet Explorer 9.0 in Windows 7
Default option does even allow user to run it. One have to click on 'More options' in SmartScreen Filer dialog to be able to run the NetBeans installer.

See attached screenshot.
Comment 1 Ondrej Vrabec 2011-04-20 10:04:41 UTC
http://msdn.microsoft.com/en-us/library/ms995347.aspx

The installer executable probably needs to be signed with 'Authenticode' [1] using Windows Platform SDK's tool SignTool [2].
For that we need a sign certificate in PKCS#12 format issued by a trusted cert authority (VeriSign?). When the executable is signed, Windows will stop
displaying the warning dialog (or at least display NetBeans/Oracle/Sun as the Publisher).

Similar installers:
JDK installers: signed with a cert issued by VeriSign to Sun Microsystems
JDK+NetBeans budle: not signed

[1] - http://technet.microsoft.com/en-us/library/cc750035.aspx
[2] - http://msdn.microsoft.com/en-us/library/8s9b9yaz%28v=vs.80%29.aspx

A nice tutorial about the issue: http://www.wiscocomputing.com/articles/code-signing.htm

Tools able to sign *.exe on Linux machines:
http://linux.die.net/man/1/signcode
http://sourceforge.net/projects/osslsigncode
Comment 2 dlipin 2011-04-25 10:26:23 UTC
See also Issue 88441.
http://netbeans.org/bugzilla/show_bug.cgi?id=88441
Comment 3 Antonin Nebuzelsky 2011-05-04 14:54:34 UTC
*** Bug 88441 has been marked as a duplicate of this bug. ***
Comment 4 Antonin Nebuzelsky 2011-05-04 14:56:30 UTC
Reassining to Release Engineering as this will need to be handled as an extra post-build step.
Comment 5 pgebauer 2011-05-19 14:12:19 UTC
I have prepared the signed full ide installer bits at http://bits.netbeans.org/tmp/netbeans_signed.exe .  
Could anybody verify that the issue is fixed there?
Comment 6 Tomas Hurka 2011-05-20 13:24:49 UTC
(In reply to comment #5)
> I have prepared the signed full ide installer bits at
> http://bits.netbeans.org/tmp/netbeans_signed.exe .  
> Could anybody verify that the issue is fixed there?
Yes, the issue is fixed in this signed build.
Comment 7 pgebauer 2011-05-27 05:56:49 UTC
QE, could you please verify all windows installers at
http://bits.netbeans.org/netbeans/trunk/nightly/2011-05-26_13-43-21/  ?
Comment 8 Marian Mirilovic 2011-05-27 06:42:10 UTC
(In reply to comment #7)
> QE, could you please verify all windows installers at
> http://bits.netbeans.org/netbeans/trunk/nightly/2011-05-26_13-43-21/  ?

We will do so, once we will test installer (at the end of release cycle).
Comment 9 pgebauer 2011-05-30 08:33:21 UTC
Changesets in the trunk:
http://hg.netbeans.org/main-silver/rev/442f4e30529a
http://hg.netbeans.org/main-silver/rev/1bfd76fb49b4

The fix has been ported into the release701:
http://hg.netbeans.org/releases/rev/65e4e6dabe89
Comment 10 Ondrej Vrabec 2011-09-14 11:26:08 UTC
Created attachment 110741 [details]
warning dialog when starting installer

I downloaded windows exe installer (7.0.1) from the official download page and realized the exe was not signed again. Could you check if the executables are still being automatically signed in build jobs?
Comment 11 Ondrej Vrabec 2011-09-15 08:31:52 UTC
I accidentally reassigned it to me.
I checked yesterday installer bits for daily builds, 7.0.1 and 7.0 release and none of them is signed. You can verify on Windows:
1) Download JRE installer from java.oracle.com
2) Open Properties via the contextual menu
3) You can see the Digital signature tab and correctly filled details in the Details tab
4) Now download a daily build and do the same. There's no Digital signature tab and the Details tab is empty
Comment 13 Quality Engineering 2011-09-22 14:50:32 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/a8549cb8bf81
User: PGebauer <pgebauer@netbeans.org>
Log: #197839 - NetBeans installer might harm your computer