Wild card certs and www.subdomain.domain.com

0

I have a wild card cert set up for a client who has a lot of sites with sub-domains. Is there a way to somehow get AWS to redirect WWW.sub-domain.domain.com to sub-domain.domain.com so the cert if valid (I know wild card certs only support Subs, not sub-sub domains)?

1개 답변
0

You cannot do an HTTPS redirect like that - as the first TLS connection would still be to a URI that is not in the subject alternative names of the certificate.

If you have a domain structure as follows:

www.sub-domain.domain.com, but also want to have a domain hosted at sub-domain.domain.com`

Then the www portion is another sub-domain, so your certificate needs to include that as well. You wold therefore need a certificate containing at least the following names.

  1. sub-domain.domain.com
  2. www.sub-domain.domain.com

And you are right - some browsers will support *.*.domain.com in subject alternate names (Chrome for instance), but many CAs will not allow you to issue a certificate like that - thus you can do the following.

*.sub-domain.domain.com *.other-sub-domain.domain.com

AWS
전문가
답변함 2달 전
profile picture
전문가
검토됨 2달 전
  • That you Max. Can the cert be for domain, .domain, and www..domain or do I need to be specific about the sub-domains?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠