Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to generate self signed, wild-card ssl certificate for internal domain on IIS 7.5 for testing purposes. For example I'd like common name to be *.domain.local

Similar question for IIS 6 was posted here, but without clear answer (in my opinion)

share|improve this question
add comment

3 Answers 3

up vote 0 down vote accepted

Your question actually did end up getting answered in that question here; You cannot create a Wildcard SSL certificate through IIS7+'s self-issued certificate system.

share|improve this answer
add comment

If you have a certificate authority on your internal domain, then yes. You can then generate whatever certificates that you need for internal use.

share|improve this answer
    
This requires having Active Directory® Certificate Services (AD CS) role on a server correct? If that is the case, we don't have one :)...Is there a way to generate this via IIS 7.5 or some other means (OpenSSL ?) –  zam6ak Dec 7 '10 at 20:14
    
@zam6ak - Using OpenSSL would be a great option if you don't have a CA available, yes. –  Andrew Barber Dec 7 '10 at 21:17
    
@Andrew Barber - so OpenSSL will let me generate self signed, wildcard cert with local domain? Is there a URL you can point me (I found bunch for IIS6 bit not for 7? Thanks a lot –  zam6ak Dec 7 '10 at 23:09
    
Internal CA with GP seems like a viable solution since it allows not only cert generation but also ability to tell the clients to trust it...See this comment: serverfault.com/questions/143047/in-house-trusted-certificate/… –  zam6ak Dec 8 '10 at 14:07
add comment

The certificate question isn't actually related to IIS.

If you create any self-signed certificate with intended purposes EKUs including Server Authentication, it'll work with IIS.

So all you really need to do is create that certificate, then convince all the clients to trust it too.

You can use the old SelfSSL tool to create the cert, at least:

http://blogs.iis.net/chrisad/archive/2006/11/14/windows-server-2003-service-pack-1-and-iis-6-0-host-headers-and-ssl.aspx

selfssl /s:{SiteId} /N:cn="*.contoso.com" /q

You should be able to skip the /s:{SideID} part, to just generate a local certificate, then hook it up through the IIS 7 InetMgr console as usual.

Aside: If you've got the metabase compatibility pack and IIS 6 scripts installed, you may be able to use the Site ID and have it set up for you, exactly as per the instructions there.

share|improve this answer
    
I'm using SelfSSl7 for generating a self signed cert for IIS7.5 but wilcarding the CN does not work:I tried this: SelfSSL7 /Q /T /I "Default WebSite" /N cn=" *.mydomain.com";cn=mymachinename;cn=localhost /K 1024 /V 18250 This is the error I get:Common name (/N cn= *.mydomain.com) contains invalid characters. –  Abhijeet Patel May 22 '11 at 17:24
    
Your quotes are in the wrong place. –  TristanK May 22 '11 at 23:05
    
I had to deliberately include a space after the quote and before the * since the comment would not format correctly here. Besides that, what am I doing wrong? –  Abhijeet Patel May 22 '11 at 23:21
    
serverfault.com/questions/272534/… - good you found the answer! –  TristanK May 23 '11 at 7:27
    
No I did not! The answer in that question does not show how to register a wildcard domain name –  Abhijeet Patel May 25 '11 at 0:58
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.