cyberpanel icon indicating copy to clipboard operation
cyberpanel copied to clipboard

More then one Domain Alias won't issue SSL for both domain Domain Aliases

Open ghost opened this issue 3 years ago • 6 comments

You can test yourself. Create website and Issue SSL for main domain and it will do like ssl certificate properly for example.com and www.example.com

If you then add Domain Alias example.net and try to Issue SSL it will deploy it properly for domain example.net and www.example.net

If you then try to add another Domain Alias example.org and try to Issue SSL it will remove example.net and www.example.net from deployed SSL certificate and ssl won't work.

It will now only work for example.com and example.org.

Can't deploy SSL certificate properly on all three domains example.com, example.net and example.org where example.com is the root domain.

You can test this by enabling https://support.mozilla.org/en-US/kb/https-only-prefs and you will see the error and you can check certificates Subject Alt Names.

ghost avatar Mar 16 '21 07:03 ghost

Kindly use the child-domain feature and give it the same path and it will work the same way as alias domain. Right now this is a bug that you have mentioned above.

usmannasir avatar Mar 16 '21 13:03 usmannasir

Same problem and Operation failed. Error message: get() returned more than one aliasDomains -- it returned 2! afterward. How to delete added domain alias?

proscommo avatar Jul 11 '22 15:07 proscommo

Same problem and Operation failed. Error message: get() returned more than one aliasDomains -- it returned 2! afterward. How to delete added domain alias?

Same issue here @usmannasir

CapBlackShot avatar Aug 01 '22 23:08 CapBlackShot

When I created an alias just to test it, CP made two copies of it. Now, when I try to delete any of them, I'll get the error message above.

CapBlackShot avatar Aug 01 '22 23:08 CapBlackShot

@usmannasir I use the mentioned workaround for multiple domains successfully. However I do run into the issue that this way /usr/local/lsws/cachedata is being separated for each domain, resulting in expired combine js files.

Here are more details on this issue: https://wordpress.org/support/topic/wpml-multi-domain-cache-clean-up/

Obviously alias-domain ssl is not working, but it's actually needed to get the above mentioned issue resolved.

Or can you suggest another workaround, so that child-domains behave like alias-domains?

Thank you very much cyberpanel, I'm using it on multiple dedicated servers successfully.

gillesgoetsch avatar Mar 15 '23 20:03 gillesgoetsch

The child domain workaround works, but it's been 2 years, and this doesn't seem like a very complex problem. Can multiple alias SSL be worked on?

Brugman avatar Apr 21 '23 22:04 Brugman