# remoting https listener with a wildcard certificate

**URL:** <https://forums.powershell.org/t/remoting-https-listener-with-a-wildcard-certificate/3272>\
**Category:** PowerShell Help\
**Created:** [October 16, 2014, 8:20pm UTC](https://forums.powershell.org/t/remoting-https-listener-with-a-wildcard-certificate/3272 "2014-10-16T20:20:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aftab-hussain](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@aftab-hussain](https://forums.powershell.org/u/aftab-hussain)\
**Post date:** [October 16, 2014, 8:20pm UTC](https://forums.powershell.org/t/remoting-https-listener-with-a-wildcard-certificate/3272/1 "2014-10-16T20:20:00Z")

</div>

I have a wilcard certificate such as \*.domain.com, I have a server with a dns url of [aftab.hussain.domain.com](http://aftab.hussain.domain.com), this configuration fails the CN check, my testing shows that the cert has to be \*.hussain.domnain.com. I don’t see a way around this without skipping the check, so will just have to change my cert, just means I need more certificates, rather than just one.

---

<div class="post-metadata">

**Author:** ![donj](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/donj/32/137_2.png) [@donj](https://forums.powershell.org/u/donj)\
**Post date:** [October 16, 2014, 11:49pm UTC](https://forums.powershell.org/t/remoting-https-listener-with-a-wildcard-certificate/3272/2 "2014-10-16T23:49:34Z")

</div>

Correct. Wildcard certificates only cover a single wildcard (e.g., _.domain.com) not multiple (_.\*.domain.com).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [October 17, 2014, 12:39am UTC](https://forums.powershell.org/t/remoting-https-listener-with-a-wildcard-certificate/3272/3 "2014-10-17T00:39:11Z")

</div>

You should still be able to accomplish this with a single certificate, though. You just may need multiple Subject Alternative Name values on the cert. I’ve read conflicting reports as to whether a DNS name of _._.domain.com on a certificate will work with modern browsers or not; you’d have to test it to see if it’s that easy. If not, then you may need to have multiple SANs for each domain (\*.domain.com, \*.child.domain.com , etc.)

---

<div class="post-metadata">

**Author:** ![aftab-hussain](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@aftab-hussain](https://forums.powershell.org/u/aftab-hussain)\
**Post date:** [October 18, 2014, 9:46pm UTC](https://forums.powershell.org/t/remoting-https-listener-with-a-wildcard-certificate/3272/4 "2014-10-18T21:46:39Z")

</div>

Didn’t realise you could have SANs in a wildcard cert, I’ll give that a try. If it works I’ll update here.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:47pm UTC](https://forums.powershell.org/t/remoting-https-listener-with-a-wildcard-certificate/3272/5 "2024-05-16T20:47:19Z")

</div>

Closed on May 16, 2024, 8:47pm UTC


