Skip to content

Subdomains: Error requesting challenges #6

@fotolab

Description

@fotolab

Hi! Thank you for your tutorial. I followed all steps. It worked for my main domain! Thank you! but I have troubles with my subdomains.

I was using your method described in 3.3 by using a challenge subdomain and redirecting all the acme-challenge traffic to my new challenge subdomain via htaccess. After some troubleshooting I was able to have a fully functional automated CRON Job for renewing my SSL certificate on my example.com website.

While its working with my naked domain, However, I get an Error during the process for my subdomain (the www. version). I have to note, that Im on a shared hosting provider. In order to fix the problem, I tried out to create a json in the letsacme folder saying that my global acme-dir would be my challenge/challenge directory. I was using the suggested piece of code in the description. The problem persits tough.

It looks like this. In my letsacme.log it says:

Logs for letsacme script

Parsing account key...
Parsed!
Parsing CSR...
CN: example.com\x0D
Parsed!
Registering account...
Already registered!
Verifying example.com
,DNS:www.example.com

E: Error requesting challenges: 400 <bound method _fileobject.read of <socket._fileobject object at 0x234e850>>

I know it looks similar to this issue:
#1
But I have no shell access, the script generally works but only not for my subdomains. plus it seems to fail at an earlier stage (requesting challenges). So unfortunately, the solution for the other issue does not seem to help me. But its interesting that i share the fact, that there appears to be a 400 Error (whatever that means in my case).

I made sure that:

  • I included both domains in the dom.list file while creating the CSR files
  • My challenge.example.com has so SSL installed
  • that I use challenge/challenge and not challenge/acme-challenge (and I made sure to use the challenge/challenge directory in ht.access, conf_json and renewcert.sh)
  • that I have the redirection in my htaccess before any other rewrite rules

The problem is not only affecting the www. version, but every other subdomain (including mail.example.com). I came to a point where I need help in order to fix this problem. I looking forward to hear from you.

Greetings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions