Dynamically Creating a CSR & Private Key in .NET

This one was a bit tricky–it took me two days to figure this out, and when I figured it out I didn’t even realize I was close to the solution.  When I initially started working on this, I was looking into using an OpenSSL port to windows called OpenSSL.NET.  The pure ASCII look of this page should be a good indication of how many other alternatives there are out there.  Eventually I found The Legion of Bouncy Castle, and stumbled onto a solution.  Initially I discredited looking at this option too thoroughly due to the name–but again, because of the lack of how many good alternatives out there it became a steady contender.

Read the rest of this post »

October 31, 2011 • Tags: , , , , • Posted in: Technology • 2 Comments

Programatically Accessing the Forms Authentication Timout from the web.config

I’ve been working on creating a session time out popup for our upcoming portal release.  While I wanted to run the script through my own javascript, I had a little trouble finding the actual property.  Eventually I found a dead page cached with the code that will retrieve the Forms Authentication Timout variable.  I’m reposting the code for prosperities sake.

Read the rest of this post »

October 4, 2010 • Tags: , , , • Posted in: Technology • No Comments

Getting AnkhSVN to Work with an Umbraco Solution

Recently I have been developing a .NET portal, using the Umbraco CMS.  Having gotten a couple parts of the application set up, I decided that it would be a good idea to get SVN set up with my code.  In order to get my Umbraco installation set up, I created several masterpages, a slightly modified version of the CSS Friendly web controls, a couple custom controls to be used in their embeded WYSIWYG editor, and a couple static  images and CSS files.  Suffice to say, I hit a snag.

Read the rest of this post »

June 8, 2010 • Tags: , , , • Posted in: Technology • No Comments

Deconstructing Binaries

.NET Reflector Icon

Moments ago I realized I had deleted all of the source code for my provisioning scripts that run MIIS. After a moment of panic, I quickly realized that I still had my compiled DLL–now if only I could wrangle the source code out of it.  After a quick search, I found this awesome piece of software that will decompile your DLLs into C# .NET code.

Read the rest of this post »

September 30, 2009 • Tags: , , • Posted in: Technology • No Comments

vb.NET Email Code Example

Visual Studio LogoIf there is one thing that burns me, it’s code examples that don’t work. I recently stumbled across some broken code for vb.NET to sends emails. Look, I know this example is from 2003, but if people are going to comment suggestions on how to make your example code work, the least you can do is update it. Also, it irks me that this page was #1 on Google when I searched for it. Read the rest of this post »