https redirect without www with apache and startssl

Asked

Viewed 703 times

2

It’s a little complicated thing... But the problem is simple. I use the free certification from Startssl and as it is free I can create keys only for my domain and a subdomain.

Turns out I replaced it and I ended up losing the key (.key) responsible for the subdomain "www". I have other keys, for example, for "dashboard.site" and ". site", "server.site" and ". site"... And so it goes.

Connect http:// website or www.site it redirects to https://site.com. But I wanted it (it worked before losing the .key) the www in the https also went to https://site.com.

The redirect inside apache does not work, because before it redirects you have to change the keys, which leads me to a certificate error. I thought instead of using one cname www in the dns i use as subdomain redirected to some directory, for example .with/redir/ - use the Domain.com - but it didn’t work out.

Look... I don’t know if I explained a little or I got in the way of explaining a lot... but it’s simple... Directing www insurance for domain with. without error of ssl.

I can generate keys but would continue the error. I only have the file .crt original.

Can anyone help me ?? I will have to pay the revocation???

  • If by "lost" you mean "may have been stolen," then the way is to revoke it, otherwise someone might misuse it. Otherwise, there is no need to revoke. You can generate a new certified for that subdomain, no? (you would have to do this when the old one expires anyway, for sure they offer this option) Try to "dribble" the situation, I believe it is unviable, because the browser assumes that if a user typed https://www.site he wants to communicate safely with the www - and you won’t accept anything other than this from an unsafe medium.

1 answer

-1

Just take the www and also http. Example: meudominio.com

  • Take from where? Even if you have no [internal] link using http://www users can always type this in the browser address bar, right? If this happens, or some external link points to this address, the security alert will be displayed.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.