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 79966

Summary: Can't commit a file becausee of the server certificate
Product: versioncontrol Reporter: meliandra <meliandra>
Component: SubversionAssignee: issues@versioncontrol <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description meliandra 2006-07-11 10:51:11 UTC
When I commit a file I got the following message.

Server Certificate Verification failed

- The certificate is not issued by a trusted authority. Use the fingerprint to
validate the certificate manually!
 - The certificate has expired.

I use https and I know that the certificate has expired but I want to accept
this certificate and commit my file. (I can't change this certificate so I have
to work with this state.)

There is the button Accept permanently or Accept temporarily but none of them
let me accept this certificate.

Despite I can't work with the commit functionality this is for me a P1.
Comment 1 Peter Pis 2006-07-11 14:55:49 UTC
Could you please attach more details of how to reproduce it? What is your
operating system, language localization, jdk, some reproducible steps ... Thanks.
Comment 2 meliandra 2006-07-11 15:13:36 UTC
I'm in the explorer view and select a file -> Right mouse click -> Subversion ->
Commit

Then the following message occurs: (I deleted the server name)

 - The certificate is not issued by a trusted authority. Use the fingerprint to
validate the certificate manually!
 - The certificate has expired.
Certificate information:
 - Hostname: -----
 - Valid: from Mon Nov 22 15:49:09 CET 2004 until Tue Nov 22 15:49:09 CET 2005
 - Issuer: EMAILADDRESS=info@plesk.com, CN=plesk, OU=Plesk, O="SWsoft, Inc.",
L=Herndon, ST=Virginia, C=US
 - Fingerprint : 
    - SHA1: 71:d3:8b:d0:59:1b:2f:fc:44:72:eb:62:35:4a:c2:7c:42:cb:cd:4c 
    - MD5:  d8:2a:d7:2a:02:7c:ea:c1:b0:cd:11:cb:52:b7:db:0f 

Ok. There's a problem with the certificate.

There are four buttons. Accept permanently, Accept temporarly, Reject, Help

When I select Accept permanently or Accept temporarly then the same message
occurs again and again.

Reject cances my action.

I think the problem is the "invalid" certificate but at least the button to
accept should give me the possibility to go ahead.

In my opinion you can only reproduce this when you have a "invalid" certificate.

OS of my machine: Windows 2000 Professional 
jdk: 1.5

Comment 3 Peter Pis 2006-07-11 15:20:54 UTC

*** This issue has been marked as a duplicate of 77388 ***
Comment 4 Tomas Stupka 2006-07-13 12:33:26 UTC
do you always get this problem or only sometimes
Comment 5 meliandra 2006-07-13 12:45:16 UTC
Every time I tested I get this error message but I just tested it three or four
times. I can reproduce this issue on my system.

This behaviour also occurs on other actions e.g. Update. Other actions like diff
are working.

I also had problems to use the checkout. It wasn't possible to define the
server. So I skipped it and used the existing directories that already used with
Subversion. I don't know if it is necessary to use the subversion module.
There's no documentation how to use it.
Comment 6 Tomas Stupka 2006-07-13 12:46:35 UTC
btw,
as a workaround you may remove the file with the expired certificate from your
$netbeans_user_dir/config/svn/config/auth/svn.ssl.server folder
Comment 7 Tomas Stupka 2006-07-13 12:51:27 UTC
> I also had problems to use the checkout. It wasn't possible to define the
> server. 
because of the certificate, or something else?

Comment 8 meliandra 2006-07-13 13:04:21 UTC
After deleting the file and restarting Netbeans I got an endless loop of error
messages. The log file is attached. I had to kill Netbeans.

Then I restarted again and excecute the Commit again, but it's the same behaviour.

==[IDE]== Sep 13, 2006 2:01:49 PM Comitting...
add -N
D:\PTC\EC626\Windchill\wtCustom.TRUNK\Windchill\src\ext\vw\ec\eclist\applet\ECLExample2.java
A        
D:\PTC\EC626\Windchill\wtCustom.TRUNK\Windchill\src\ext\vw\ec\eclist\applet\ECLExample2.java
ci --force-log -m "" --username sgraf --password ******* --non-interactive
--config-dir C:\Dokumente und
Einstellungen\Administrator\.netbeans\5.5dev\config\svn\config
D:\PTC\EC626\Windchill\wtCustom.TRUNK\Windchill\src\ext\vw\ec\eclist\applet\ECLExample2.java
svn: Commit failed (details follow):
svn: OPTIONS request failed on
'/vw_wt626/trunk/Windchill/src/ext/vw/ec/eclist/applet'
svn: OPTIONS of '/vw_wt626/trunk/Windchill/src/ext/vw/ec/eclist/applet': Server
certificate verification failed: certificate has expired, certificate issued for
a different hostname, issuer is not trusted (https://xxx)
ci --force-log -m "" --username sgraf --password ******* --non-interactive
--config-dir C:\Dokumente und
Einstellungen\Administrator\.netbeans\5.5dev\config\svn\config
D:\PTC\EC626\Windchill\wtCustom.TRUNK\Windchill\src\ext\vw\ec\eclist\applet\ECLExample2.java
svn: Commit failed (details follow):
svn: OPTIONS request failed on
'/vw_wt626/trunk/Windchill/src/ext/vw/ec/eclist/applet'
svn: OPTIONS of '/vw_wt626/trunk/Windchill/src/ext/vw/ec/eclist/applet': Server
certificate verification failed: certificate has expired, certificate issued for
a different hostname, issuer is not trusted (https://xxx)
ci --force-log -m "" --username sgraf --password ******* --non-interactive
--config-dir C:\Dokumente und
Einstellungen\Administrator\.netbeans\5.5dev\config\svn\config
D:\PTC\EC626\Windchill\wtCustom.TRUNK\Windchill\src\ext\vw\ec\eclist\applet\ECLExample2.java
svn: Commit failed (details follow):
svn: OPTIONS request failed on
'/vw_wt626/trunk/Windchill/src/ext/vw/ec/eclist/applet'
svn: OPTIONS of '/vw_wt626/trunk/Windchill/src/ext/vw/ec/eclist/applet': Server
certificate verification failed: certificate has expired, certificate issued for
a different hostname, issuer is not trusted (https://xxx)
==[IDE]== Sep 13, 2006 2:02:07 PM Comitting... finished.
Comment 9 Tomas Stupka 2006-07-13 18:43:36 UTC
the last posted problem should be fixed in 

trunk 
Checking in client/SvnClientExceptionHandler.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/client/SvnClientExceptionHandler.java,v
 <--  SvnClientExceptionHandler.java
new revision: 1.16; previous revision: 1.15
done

and 5.5

Checking in config/CertificateFile.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/config/CertificateFile.java,v
 <--  CertificateFile.java
new revision: 1.8; previous revision: 1.7