Inloggen
 
 
 
 
    
The remote certificate is invalid according to the validation procedure
Location: BlogsFerry Onderwater - Developer    
Posted by: Ferry Onderwater 15-5-2008 15:35
While trying to use the Reportviewer to render a remote report I received the error: "The remote certificate is invalid according to the validation procedure". The webserver on which the application with the viewer runs has to access the reportserver over SSL.

The first thing I did was trying to load the report from within IE. IE showed an error that the certificate was not issued by a trusted root certification authority. This is correct since we created the certificate ourselfs.

After installing the certificate the report showed without any error in IE. However, when trying to show the report by using the application with the reportviewer I still got the same error.

It looked like the application wasn't able to find or load the certificate despite the fact I installed it.

The solution is simple (isn't that true in most cases). When you install a certificate that certificate is installed for the current user. Since IIS runs with it's own account (IIS 6.0 default = Network Service) it has no access to 'my' certification stores.

  1. First save the certificate in a file
  2. Run MMC
  3. Open the Certificate Manager (certmgr.msc in C:\Windows\System32)
    You will see it opens 'Certificates - Current User'
  4. In the menu, choose File, Add/Remove Snap-In
  5. Now press Add, select 'Certificates' and select 'Computer Account'
  6. Select the Local Computer
  7. Now you have two snap-ins:
    1. Certificates - Current User
    2. Certificates (Local Computer)
  8. Now import the certificate in "Certificates (Local Computer)\Trusted Root Certificates\Certificates"

Now every'one' one this computer will be able to use the certificate, including the Network Service.

Copyright ©2008 Ferry Onderwater
Permalink |  Trackback

Comments (3)  
Re: The remote certificate is invalid according to the validation procedure    By Antony on 25-11-2008 0:43

Hi,
I am facing above mentioned issue. After 7th step, I am not able to see following two snap-ins..
1. Certificates - Current User
2. Certificates (Local Computer)

I could only see 1st option visible in the console.

Appreciate your help in this.

Thanks,
Antony

Re: The remote certificate is invalid according to the validation procedure    By Saby on 16-3-2009 16:50
Nice one. Was scratching my head for hours.

Cool.

Re: The remote certificate is invalid according to the validation procedure    By Mike on 31-8-2009 16:50
Antony, do you launch the MMC as local admin?

  
 
Weblogs
    
Archief
    
Zoeken
    
 
 
 
 
Copyright 2006-2009 by Arcencus
Privacy Statement | Terms Of Use