It’s that time of year (actually that time of two years) again and my SSL certificate renewal is up on www.west-wind.com. Late last year I switched to a new Web Server box and in the process switched the server OS too to Windows Server 2008 64 bit. At the time I had no issues taking the certificate from the old server (via PFX export) and importing it to the new server. All’s been well.
When the time came to renew a couple of weeks ago, I just used the IIS 7 Renewal option to issue a renewal CSR to send to my domain registrar DirectNic whom I also use for SSL certs (issued by Commodo). They’ve always been quick to turn around and cheap to boot. I’ve been using them for nearly 10 years now without any sort of issues.
This certificate renewal however proved to be more complicated. IIS 7 has an option to renew an existing certificate which is supposed to take all the information from the existing certificate and create a certificate renewal request from that data. The idea is that you don’t have to re-fill the typical renewal form where you specify the organizational unit, name and so on. Here’s the cert screen in IIS 7:
However as it turns out this renewal request caused me all sorts of problems with DirectNic (and possibly with any other cert reseller). The first issue I ran into is that the CSR generated by the renewal request is unexpectedly massive. Here’s a (purposefully munged) CSR renewal request generated by the Renew option:
-----BEGIN NEW CERTIFICATE REQUEST-----
MEIDXAYJKfZIhvcNAQc4oIIQTsCsEakCAQExCzAJBgUrDgMCGgUAMIIJYQYJKoZI
hvcNAQcBoIsJUgSCCU4wgglKMIIIswIBADCB8DELMAkGA1UEBhMCVVMxDjAMBgNV
BBEMBTk2Nzc3MQ8wDQYDVQQIDAZIYXdhaWkxDTALBgNVBAcMBFBhaWExFzAVBgNV
BAkMDjMyIEthgWVhIFBsYWNlMR8wHQYDVQQKDBZXZXN0IFdpbmQgVGVjaG5vbG9n
aWVzMQwwCgYDVsQLDANXZWIxLDAqBgNVBAsMI1BysdZpZGVkIGJ5IEludGVyY29z
bW9zIE1lZGlhIEdyb3VwMR8wHQYDVQQLDBZEaXJlY3QgTklDIFByZW1pdW0gU1NM
MRowGAYDVQQDDBc3d3cud2VzdC13aW5kLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOB
jQAwgYkCgYEAtB7cghOTNzyA43VnUiqZg27edNZcOfszZIAf3ohbGaaTXaShAfcY
SuPIPFOQXqYeGgBOaKB0n8nTZbuAvxdkx/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bW9kby5uZXQvVVRO
QWRkVHJ1c3RTZXJ2ZXJDQS5jcnQwDQYJKoZIhvcNAQEFBQADggEBAFAgyy1j4gba
LJoL/GazwGIIKxmor1EzN68w2TvKTj0n7QgVqE7gWyZ3dZ0hw7TOAUgFXkziZgAp
IukD3gkyc2LARRXaZUCGGxesQZLCtbVhf3E4lU8MlBM2d79C3u3C5Mew5NvvTmdZ
M03HfV7wsRREWa7R57J46lPDDZQEUSTdX9BoKCBN8IEi9hbSHCg47AF0YbnN/e/G
jFSiMOmLFh2my49DVvFUylUjD47LjukX0OZfZBGy8Hl8ZCddiBychVi9YH9mcq+G
w3o9xpMsEc8aLAnrS5ax+uuI5IgQSKTzdlwwwItSNb+SUtjln9ZsRLmnOuL0DZT8
jA/Pjud+YmExggFUMIIBUAIBATCBrTCBlzELMAkGA1UEBhMCVVMxCzAJBgNVBAgT
AlVUMRcwFQYDVQQHEw5TYWx0IExha2UgQ2l0eTEeMBwGA1UEChMVVGhlIFVTRVJU
UlVTVCBOZXR3b3JrMSEwHwYDVQQLExhodHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20x
HzAdBgNVBAMTFlVUTi1VU0VSRmlyc3QtSGFyZHdhcmUCEQDzyBa09Wl/oa1kxWLc
q/wkMAkGBSsOAwIaBQAwDQYJKoZIhvcNAQEBBQAEgYA3QlWyHLnF3C/VpVVwPHlQ
+u5QWke8WL2BmtiyWEwGdxBNtwI0S2iuqjE+JoFqTunzEFLLoetoWaMjzBEY1o1W
v13ASICOuUyzOMZwu1NSVQ9gPln1oesVzqn9eaRksLK72aasaE+09k9hqRvi85NS
pdbtSjuL+upPIcKlminI2Q==
-----END NEW CERTIFICATE REQUEST-----
The fist thing that sticks out on this is that the certificate request is huge! A typical CSR issued usually is a quarter of this size. In fact it’s so huge that it didn’t fit the submission form of the DirectNic site. Ooops (on DirectNic’s part). Of course I didn’t notice the cut off on the bottom of DirectNic’s form at first so there were a few tries back and forth and eventually I ended up emailing the certificate to DirectNic.
The next problem was that DirectNic came back and told me that the certificate request was for west-wind.com, not www.west-wind.com. They basically take the cert request and set it up for submission to Commodo for issuance of the final certificate and as part of the process the verify the information for the domain submitted and what’s actually entered into the certificate.
Now the odd thing is: The IIS 7 renewal process doesn’t give me any options to change the certificate settings – I just select Renew and it asks for a file name to dump the Cert request to, so it’s not something I could have changed. Yet after repeated resends and regenerations DirectNic claims the cert renewal contains just the base domain name without the www. in front. Yet the old certificate definitely DOES have www.west-wind.com as the secured domain.
FAIL.
After over a week of back and forth I finally decided to create a new certificate request rather than trying to use the IIS renewal. Creating a new cert in general seems to be a better idea:
and then re-filling the certificate information manually. I always crack up on this form – talk about obtuse terminology: Organizational Unit? Common Name?
Today finally the final certificate arrived and I installed it into the server with 1 day to spare. Phew.
Anyway I’m curious if any anybody else has experienced this behavior with IIS 7 renewals, where the domain name gets somehow munged in the renewal request? It certainly seems that IIS 7 is doing something funky with these renewal requests – just the size of the CSR makes one wonder WTF is happening there. But really I wonder if there’s a problem with IIS 7 or whether the problem actually occurred with DirectNic’s parsing of the submitted CSR although I find that hard to believe – the data is encoded and if something isn’t right it won’t decode partially, so it would seem this is an IIS issue.
After all the early years of problems with the IIS certificate renewal process I figured by now in IIS 7 this process would be fixed. In fact, the FAQ at DirectNic pointed out that servers prior to IIS 6 shouldn’t use renewals but new requests but that IIS 6 (7 isn’t mentioned yet) has this working. Apparently in IIS 7 there are a still some issues with renewals not working quite right.
For now, I’m making a mental note: Certificate renewals are best done by recreating a certificate requests from scratch.
Other Posts you might also like