Thanks for that, but I already found a way of doing it - really easily in fact!
I simply browsed to Microsoft's website and downloaded the IIS Resource Kit for Windows XP and Windows 2003.
There's a selfcert utility included which allows easy creation of keys; it even installs them for you!
I'll award you the points, though, for your efforts! :)
Main Topics
Browse All Topics





by: af500Posted on 2003-11-24 at 14:35:35ID: 9814269
This says for IIS 5.0, but it works for IIS 6.0 as well.
Grab a copy of openssl
Then:
1. Go into IIS - Secured Directory - Server Certificate and request a certificate for your domain. This gives you c:\certreq.txt.
2. Go into mmc.exe and under REQUESTS export the request including private key as
PKCS12. Take off strong encryption. Enter a passphrase twice. This will create c:\yourfile.pfx
3. Run openssl against yourfile.pfx:
openssl pkcs12 -info -in yourfile.pfx -nodes
This will give you your private key, cut n paste it into a new file priv.txt
openssl req -x509 -key priv.txt -in certreq.txt > cert.txt
4. Go back into IIS and finish off the cert request using cert.txt. Turn on
port 443 for the site...