1

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)

3 Answers 3

0

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.

0

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

4
  • 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, 2010 at 20:14
  • @zam6ak - Using OpenSSL would be a great option if you don't have a CA available, yes. Dec 7, 2010 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, 2010 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, 2010 at 14:07
0

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.

9
  • 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. May 22, 2011 at 17:24
  • Your quotes are in the wrong place.
    – TristanK
    May 22, 2011 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? May 22, 2011 at 23:21
  • serverfault.com/questions/272534/… - good you found the answer!
    – TristanK
    May 23, 2011 at 7:27
  • No I did not! The answer in that question does not show how to register a wildcard domain name May 25, 2011 at 0:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .