letsencrypt-cpanel icon indicating copy to clipboard operation
letsencrypt-cpanel copied to clipboard

Issue with subdomain on different IP or account?

Open BeZazz opened this issue 8 years ago • 8 comments

I set up a subomain via cPanel and installed letsencrypt via cPanel. (no issues)

I uninstalled the subomain.

I then used the same name and created an account via WHM. cPanel could not install the cert but WHM could.

BeZazz avatar Mar 26 '16 14:03 BeZazz

What error message are you getting there? I couldn't able to recreate the issue on my stagging server.

Prajithp avatar Mar 31 '16 16:03 Prajithp

I also did not encounter any errors.

setroot avatar Apr 14 '16 17:04 setroot

I am guessing this is the same issue as https://github.com/Prajithp/letsencrypt-cpanel/issues/21

BeZazz avatar Apr 16 '16 17:04 BeZazz

@BeZazz is there any way to recreate this issue? In my system, I couldn't able to recreate.

If possible, please ping me on [email protected]

Prajithp avatar Apr 17 '16 08:04 Prajithp

From memory.

I created a subdomain (sub.domain.com) via cPanel on a domain with a dedicated IP.

I then decided I wanted to give the subdomain in its own account.

So I removed the subdomain via cPanel.

I then created the same domain (sub.domain.com) via WHM add account.

I was not able to add an SSL Cert via the plugin in cPanel (I couldn't find the logs)

I was able to use the plugin via WHM to add an SSL Cert.

BeZazz avatar Apr 17 '16 14:04 BeZazz

@BeZazz Thank you will look into this.

Prajithp avatar Apr 21 '16 04:04 Prajithp

I'm also experiencing this issue and it is the same as issue #21 . Is there a way to validate a subdomain ssl when the domain already has a cert on a different IP? Would it be worth trying to hack a PR for this module or is the issue more complicated?

EDIT: I just noticed the error is looking for a www.subdomain.domain.com. I don't have a www A record under the subdomain. This might be my fault entirely. EDIT: Nevermind. The plugin worked for me when I added the www A record for my subdomain. I was able to create a subdomain ssl key on a different IP while simultaneously on a different account.

ceesco53 avatar May 05 '16 16:05 ceesco53

@ceesco53 Yes, you must create a dns record for both www and non www address as this plugin completely depending on cPanel/WHM api, so if api returns www.sudoman.domain.com and it doesn't have valid A record then letsencrypt verification will definitely fail.

Prajithp avatar May 05 '16 17:05 Prajithp