ssl-whmcs icon indicating copy to clipboard operation
ssl-whmcs copied to clipboard

Certificates can not be verified using DNS or HTTP

Open jas8522 opened this issue 7 years ago • 5 comments

Any certificate set up to use DNS verification upon renewal shows up in the Client Area with the option to resend the approver email... and no option to view the DNS records to create.

jas8522 avatar Sep 03 '17 17:09 jas8522

The same thing happens with HTTP verification. You will be presented with the option to create a blank file with no filename (variables aren't being filled it seems).

Then if you exit out and re-attempt to validate through the Client Area in WHMCS, it will show that it's email verification rather than HTTP.

It seems all verification methods other than email are not working now.

Screenshots to show this attached.

initializing-http-activation re-attempting-http-activation

jas8522 avatar Sep 12 '17 15:09 jas8522

After perusing the code trying to fix this I've discovered two things:

  1. There's definitely nothing in there to support DNS verification, which makes some sense given that the module was written long before that type of verification existed.
  2. The HTTP validation seems fundamentally broken, but I can't see how this could have worked in the past unless some essential code was removed!

To elaborate on the HTTP validation stuff... I've found exactly where it expects to find the HTTP validation file info and display it; where it pulls it from the WHMCS database. But I see nothing in the code that describes where that HTTP validation file info is pulled from the Namecheap API and entered into the WHMCS database. I feel like it should be in the Step3 function, yet I don't see anything there that covers this. Am I missing something? Or was there once code for this that was removed?

jas8522 avatar Sep 29 '17 15:09 jas8522

Hi Jordan,

Just to elaborate, did you check the new version of the module we uploaded about a week ago? It allows HTTP validation for certificates. DNS validation is indeed not available in the module.

If you're still facing issues with the HTTP validation with the new module, could you please submit a ticket with us at: https://support.namecheap.com/index.php?/Tickets/Submit/RenderForm

It will help a lot if you provide us with the information of what is not working for you, so we could look into that.

Thank you! Regards, Stacy Namecheap, Inc.

StacyG-NC avatar Sep 29 '17 16:09 StacyG-NC

Hey Stacy,

Yep! I uploaded the new version and got the same results. It begins with HTTP activation (as the option is available to select) but when you get to step 3 where it used to show the activation filename and contents, those values are either empty, or it shows me the option to resend the validation email (which it shouldn't be doing because it's supposed to be using HTTP validation).

When I look in the database, it shows that there's no validation filename or contents; those fields are simply empty.

One thing to note is that I've only been able to test this on renewals so far. It's possible it works for new orders but is only broken on renewal.

I see from the API docs that DNS validation isn't available upon first activation, however I do also see that you can change the validation type to DNS via API. I, therefore, request that the option to change validation types be added to the WHMCS module. This way if email or HTTP fail to function, we can switch to DNS.

-Jordan

jas8522 avatar Sep 29 '17 16:09 jas8522

That definitely doesn't look right, as I've tested the new version of the module and it is supposed to show the HTTP values during the activation process.

I just asked our support team to send you the new version of the module once again to the email under your Namecheap account just to make sure you're using the latest one.

If it's the same as you're using, please give us as much information as possible in the ticket and we'll look into this for you. Thanks.

Regards, Stacy Namecheap, Inc.

StacyG-NC avatar Sep 29 '17 17:09 StacyG-NC