Skip to content

Obviate.io

To anticipate and prevent

  • Home
  • About Us
  • History
  • Privacy Policy
  • Toggle search form

Migrating Apache SSL Certs to IIS 6.0

Posted on 2014-11-24 By Jon No Comments on Migrating Apache SSL Certs to IIS 6.0

happylock
happylock

You probably think I’m crazy to mention IIS 6 in this day in age; you’d be right. Unfortunately legacy systems are legacy systems till they get replaced (hopefully soon). This weekend I had the joy of figuring out how to migrate a valid Apache SSL cert over to an old Windows 2003 box running IIS 6.

I started out with 4 SSL files of note: Intermediate CA chain .crt, my SSL .crt, my SSL .csr and my SSL .key. Keep in mind that all of these files are in standard PEM format (great serverfault article on the different formats). Those work great in Apache but what I needed was a .pfx for IIS to slurp in. Here’s the entire step-by-step:

  • Log into your Linux server that contains the certs
  • sudo openssl pkcs12 -export -out wildcard.pfx -inkey wildcard.key -in wildcard.crt -certfile intermediate.crt
  • When it asks for an export password, you MUST provide one. Even if it’s just “a”, provide a password
  • Transfer your pfx to Windows machine (it’s binary, FYI)
  • Open Computer Management
  • Find your SSL site in IIS, stop it.
  • Right click, Properties (on said SSL site), Directory Security tab
  • Server Certificate, Remove, Finish stepping through
  • Server Certificate, Import a verification from a .pfx file
  • Find your pfx file on the harddrive
  • Notice it asks for you a password? Doesn’t let you click next? Yea, that’s why you exported with a password.
  • Finish stepping through the process
  • Start your SSL site

Congrats! You’ve completed your SSL work for the night. Now have a nice cold one and plan for your upgrade to a more modern server/OS/IIS.

Linux, Windows Tags:apache, CA, heartbleed, iis 6, legacy, pfx, pkcs12, secure, ssl, Windows 2003

Post navigation

Previous Post: Dead MacBook or: How I Learned to Stop Worrying and Love the Surface Pro 3
Next Post: Hosting a website for $0.10 a month

More Related Articles

Internet Explorer: “The requested lookup key was not found in any active activation context” Windows
Puppet Quick Tip: Enabling an Apache module Puppet
Apache + WebDav + LDAP = Pure Bliss LDAP

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

November 2014
S M T W T F S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Sep   Dec »

Copyright © 2022 Obviate.io

Powered by PressBook Premium theme