Wednesday, February 13, 2013

Generate Self Signed Certificate on IIS7 with custom CommonName


It appears that generating a self signed certificate for use with IIS7 is trivial, utilizing the IIS->Server Certificates->Create Self-Signed Certificate wizard. Unfortunately, that wizard will only create a certificate with a CN of the computers FQDN according to Windows. To create on with an alternate CN:

Download the IIS 6.0 Resource Kit.
Run the installer and select to install only the SelfSSL Tool.
Look up the IIS Site ID by clicking Sites in IIS Manager
Open a command prompt and change directory into "C:\Program Files (x86)\IIS Resources\SelfSSL
Execute: SelfSSL.exe /N:CN=fqdn.com /V:1000 /S:SiteID

Verify certificate exists in IIS Manager->IIS->Server Certificates

Bind to appropriate Site.

Note: Error 0x80092023 indicates you followed other directions that stated the commandline as /N:CN:fqdn.com instead of /N:CN=fqdn.com
Expect to receive an error 0x80040154, it can be ignored.

Monday, February 4, 2013

Stupid Android Tricks

My work has an internal forum with a WYSIWYG editor. That is a step up from what it previously was, but it had Web 2.0 menus which would prevent a long hold to paste on the android. After much frustration I found out if you long hold on something instead of empty space the paste button does come up. So type a random character and press on that.