by APIJunkie
25. June 2010 23:47
This is the second time I had to find the solution to install self assigned SSL certificates on IIS so I am writing this down for posterity.
In many cases it is desirable to create your own SSL certificate when working with IIS.
For example when developing/testing SSL secure web sites, when using a custom web application in a local intranet or for a closed group of users to name a few.
It should have been easy to create your own SSL cert and instruct IIS to use it.
Microsoft delivered a tool to do just that. It was a part of the IIS 6.0 Resource Kit and it was called SelfSSL. But alas because of a bug in the SelfSSL tool you will run into problems if you try to use multiple certificates on a server.
Apparently Microsoft decided not to release a patch for the resource kit but instead released another tool that can be used to create self SSL certificates called SSL Diagnostics.
The tool is very easy to use. There is a nice tutorial on how to use the SSL Diagnostics tool to create an SSL certificate by Revindex.
Another option you might want to explore is using the open source alternative called OpenSSL. There is a nice tutorial on how to use OpenSSL with IIS by Dylan Beattie.
Best of luck!
by APIJunkie
23. December 2008 09:21
I was really surprised to discover this bug a couple of days back while working on an ASP.Net 2.0 web site.
I spent several hours barking up the wrong code tree since I was convinced it had to do with some recent code changes I made.
But as it turns out this problem is as old as the server itself and for some reason has not been fixed by any .Net patches.
The jist of it is that if you encounter .net exceptions that only happen on your server with certain types of traffic ( examples: google bot, yahoo bot and some other esteemed visitors), you might be the victim of an annoying bug that has existed, as far as I could tell, for a couple of years and has not been fixed till date.
The telltale signs would be server exceptions that look like ->
Exception of type 'System.Web.HttpUnhandledException' was thrown.
Stack trace: at System.Web.UI.Page.HandleError(Exception e)
And inner exception type ->
System.Web.HttpException: Cannot use a leading .. to exit above the top directory. at System.Web.Util.UrlPath.ReduceVirtualPath(String path)
---------------
As it turns out this bug has to do with .Net 2.0 browser detection bug and can be fixed by adding a browser definition file to correct the problem.
You can also reproduce and test the browser detection bug here.
Note that this bug often occurs when you use url rewriting on your server.
by apijunkie
23. December 2008 03:21
I was really surprised to discover this bug a couple of days back while working on an ASP.Net 2.0 web site.
I spent several hours barking up the wrong code tree since I was convinced it had to do with some recent code changes I made.
But as it turns out this problem is as old as the server itself and for some reason has not been fixed by any .Net patches.
The jist of it is that if you encounter .net exceptions that only happen on your server with certain types of traffic ( examples: google bot, yahoo bot and some other esteemed visitors), you might be the victim of an annoying bug that has existed, as far as I could tell, for a couple of years and has not been fixed till date.
The telltale signs would be server exceptions that look like ->
Exception of type 'System.Web.HttpUnhandledException' was thrown.
Stack trace: at System.Web.UI.Page.HandleError(Exception e)
And inner exception type ->
System.Web.HttpException: Cannot use a leading .. to exit above the top directory. at System.Web.Util.UrlPath.ReduceVirtualPath(String path)
---------------
As it turns out this bug has to do with .Net 2.0 browser detection bug and can be fixed by adding a browser definition file to correct the problem.
You can also reproduce and test the browser detection bug here.
Note that this bug often occurs when you use url rewriting on your server.
fcc98709-f216-45f0-b5bb-edd9ce534c5e|0|.0
Tags:
IIS
by apijunkie
23. December 2008 03:21
I was really surprised to discover this bug a couple of days back while working on an ASP.Net 2.0 web site.
I spent several hours barking up the wrong code tree since I was convinced it had to do with some recent code changes I made.
But as it turns out this problem is as old as the server itself and for some reason has not been fixed by any .Net patches.
The jist of it is that if you encounter .net exceptions that only happen on your server with certain types of traffic ( examples: google bot, yahoo bot and some other esteemed visitors), you might be the victim of an annoying bug that has existed, as far as I could tell, for a couple of years and has not been fixed till date.
The telltale signs would be server exceptions that look like ->
Exception of type 'System.Web.HttpUnhandledException' was thrown.
Stack trace: at System.Web.UI.Page.HandleError(Exception e)
And inner exception type ->
System.Web.HttpException: Cannot use a leading .. to exit above the top directory. at System.Web.Util.UrlPath.ReduceVirtualPath(String path)
---------------
As it turns out this bug has to do with .Net 2.0 browser detection bug and can be fixed by adding a browser definition file to correct the problem.
You can also reproduce and test the browser detection bug here.
Note that this bug often occurs when you use url rewriting on your server.
a10c0722-8420-447d-9070-65a809dc9561|0|.0
Tags:
IIS
by apijunkie
23. December 2008 03:21
I was really surprised to discover this bug a couple of days back while working on an ASP.Net 2.0 web site.
I spent several hours barking up the wrong code tree since I was convinced it had to do with some recent code changes I made.
But as it turns out this problem is as old as the server itself and for some reason has not been fixed by any .Net patches.
The jist of it is that if you encounter .net exceptions that only happen on your server with certain types of traffic ( examples: google bot, yahoo bot and some other esteemed visitors), you might be the victim of an annoying bug that has existed, as far as I could tell, for a couple of years and has not been fixed till date.
The telltale signs would be server exceptions that look like ->
Exception of type 'System.Web.HttpUnhandledException' was thrown.
Stack trace: at System.Web.UI.Page.HandleError(Exception e)
And inner exception type ->
System.Web.HttpException: Cannot use a leading .. to exit above the top directory. at System.Web.Util.UrlPath.ReduceVirtualPath(String path)
---------------
As it turns out this bug has to do with .Net 2.0 browser detection bug and can be fixed by adding a browser definition file to correct the problem.
You can also reproduce and test the browser detection bug here.
Note that this bug often occurs when you use url rewriting on your server.
174ea43c-fbc9-45ae-9724-08d31bff6701|0|.0
Tags:
IIS
by APIJunkie
23. December 2008 03:21
I was really surprised to discover this bug a couple of days back while working on an ASP.Net 2.0 web site.
I spent several hours barking up the wrong code tree since I was convinced it had to do with some recent code changes I made.
But as it turns out this problem is as old as the server itself and for some reason has not been fixed by any .Net patches.
The jist of it is that if you encounter .net exceptions that only happen on your server with certain types of traffic ( examples: google bot, yahoo bot and some other esteemed visitors), you might be the victim of an annoying bug that has existed, as far as I could tell, for a couple of years and has not been fixed till date.
The telltale signs would be server exceptions that look like ->
Exception of type 'System.Web.HttpUnhandledException' was thrown.
Stack trace: at System.Web.UI.Page.HandleError(Exception e)
And inner exception type ->
System.Web.HttpException: Cannot use a leading .. to exit above the top directory. at System.Web.Util.UrlPath.ReduceVirtualPath(String path)
---------------
As it turns out this bug has to do with .Net 2.0 browser detection bug and can be fixed by adding a browser definition file to correct the problem.
You can also reproduce and test the browser detection bug here.
Note that this bug often occurs when you use url rewriting on your server.
f56efbc5-5c6d-4e12-be3c-011d4877abbb|0|.0
Tags:
IIS
by apijunkie
23. December 2008 03:21
I was really surprised to discover this bug a couple of days back while working on an ASP.Net 2.0 web site.
I spent several hours barking up the wrong code tree since I was convinced it had to do with some recent code changes I made.
But as it turns out this problem is as old as the server itself and for some reason has not been fixed by any .Net patches.
The jist of it is that if you encounter .net exceptions that only happen on your server with certain types of traffic ( examples: google bot, yahoo bot and some other esteemed visitors), you might be the victim of an annoying bug that has existed, as far as I could tell, for a couple of years and has not been fixed till date.
The telltale signs would be server exceptions that look like ->
Exception of type 'System.Web.HttpUnhandledException' was thrown.
Stack trace: at System.Web.UI.Page.HandleError(Exception e)
And inner exception type ->
System.Web.HttpException: Cannot use a leading .. to exit above the top directory. at System.Web.Util.UrlPath.ReduceVirtualPath(String path)
---------------
As it turns out this bug has to do with .Net 2.0 browser detection bug and can be fixed by adding a browser definition file to correct the problem.
You can also reproduce and test the browser detection bug here.
Note that this bug often occurs when you use url rewriting on your server.
99301c3d-d6b5-431a-af6f-f2c631e301f3|0|.0
Tags:
IIS
by apijunkie
23. December 2008 03:21
I was really surprised to discover this bug a couple of days back while working on an ASP.Net 2.0 web site.
I spent several hours barking up the wrong code tree since I was convinced it had to do with some recent code changes I made.
But as it turns out this problem is as old as the server itself and for some reason has not been fixed by any .Net patches.
The jist of it is that if you encounter .net exceptions that only happen on your server with certain types of traffic ( examples: google bot, yahoo bot and some other esteemed visitors), you might be the victim of an annoying bug that has existed, as far as I could tell, for a couple of years and has not been fixed till date.
The telltale signs would be server exceptions that look like ->
Exception of type 'System.Web.HttpUnhandledException' was thrown.
Stack trace: at System.Web.UI.Page.HandleError(Exception e)
And inner exception type ->
System.Web.HttpException: Cannot use a leading .. to exit above the top directory. at System.Web.Util.UrlPath.ReduceVirtualPath(String path)
---------------
As it turns out this bug has to do with .Net 2.0 browser detection bug and can be fixed by adding a browser definition file to correct the problem.
You can also reproduce and test the browser detection bug here.
Note that this bug often occurs when you use url rewriting on your server.
7f6c6dad-413c-411f-996d-322a373e7882|0|.0
Tags:
IIS
by apijunkie
23. December 2008 03:21
I was really surprised to discover this bug a couple of days back while working on an ASP.Net 2.0 web site.
I spent several hours barking up the wrong code tree since I was convinced it had to do with some recent code changes I made.
But as it turns out this problem is as old as the server itself and for some reason has not been fixed by any .Net patches.
The jist of it is that if you encounter .net exceptions that only happen on your server with certain types of traffic ( examples: google bot, yahoo bot and some other esteemed visitors), you might be the victim of an annoying bug that has existed, as far as I could tell, for a couple of years and has not been fixed till date.
The telltale signs would be server exceptions that look like ->
Exception of type 'System.Web.HttpUnhandledException' was thrown.
Stack trace: at System.Web.UI.Page.HandleError(Exception e)
And inner exception type ->
System.Web.HttpException: Cannot use a leading .. to exit above the top directory. at System.Web.Util.UrlPath.ReduceVirtualPath(String path)
---------------
As it turns out this bug has to do with .Net 2.0 browser detection bug and can be fixed by adding a browser definition file to correct the problem.
You can also reproduce and test the browser detection bug here.
Note that this bug often occurs when you use url rewriting on your server.
f11b9f8c-c8ca-4596-bc1f-ff2b44b65398|0|.0
Tags:
IIS
by apijunkie
23. December 2008 03:21
I was really surprised to discover this bug a couple of days back while working on an ASP.Net 2.0 web site.
I spent several hours barking up the wrong code tree since I was convinced it had to do with some recent code changes I made.
But as it turns out this problem is as old as the server itself and for some reason has not been fixed by any .Net patches.
The jist of it is that if you encounter .net exceptions that only happen on your server with certain types of traffic ( examples: google bot, yahoo bot and some other esteemed visitors), you might be the victim of an annoying bug that has existed, as far as I could tell, for a couple of years and has not been fixed till date.
The telltale signs would be server exceptions that look like ->
Exception of type 'System.Web.HttpUnhandledException' was thrown.
Stack trace: at System.Web.UI.Page.HandleError(Exception e)
And inner exception type ->
System.Web.HttpException: Cannot use a leading .. to exit above the top directory. at System.Web.Util.UrlPath.ReduceVirtualPath(String path)
---------------
As it turns out this bug has to do with .Net 2.0 browser detection bug and can be fixed by adding a browser definition file to correct the problem.
You can also reproduce and test the browser detection bug here.
Note that this bug often occurs when you use url rewriting on your server.
321a12a6-5d09-4fa1-bc1b-0d4e9cf24e26|0|.0
Tags:
IIS