Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$HE_SESSID doesn't work and README enhancement #3

Closed
zaszlo opened this issue Oct 19, 2018 · 5 comments
Closed

$HE_SESSID doesn't work and README enhancement #3

zaszlo opened this issue Oct 19, 2018 · 5 comments

Comments

@zaszlo
Copy link

zaszlo commented Oct 19, 2018

Hi,

I'm new to certbot and would like to have the free ssl cert with Hurricane Electric Free DNS Management (https://dns.he.net).

For the first step in the readme I get a "No renewals were attempted." As I haven't configured any domains. For that I guess I should start with #2 from the readme, but that requires a HE_SESSID=<session_id>. How do I get that HE_SESSID?

Loging in the site and looking to cookies I see only a CGISESSID. Tried with that and got:

Waiting for verification...
Cleaning up challenges
Error output from certbot-he-hook.sh:
No zone for domain "" found.
/root/certbot-he-hook.sh: line 99: return: can only `return' from a function or sourced script

Failed authorization procedure. xyz.com (dns-01): urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.xyz.com

@zaszlo zaszlo changed the title readme readme enhancement Oct 19, 2018
@angel333
Copy link
Owner

For that I guess I should start with #2 from the readme, but that requires a HE_SESSID=<session_id>. How do I get that HE_SESSID?

Aha, that's unclear in the README, will fix that. With both "renew" and "certonly" you can use either HE_USER and HE_PASS, or HE_SESSID. In fact, if you omit the authentication details, it should you tell you what to do.

For the rest of the problem - could you provide the command that you're running (with obfuscated details)?

@zaszlo
Copy link
Author

zaszlo commented Oct 19, 2018

sure:

HE_SESSID=5...d certbot certonly \
  --preferred-challenges dns \
  --email some@gmail.com \
  --manual \
  --manual-auth-hook /root/certbot-he-hook.sh  \
  --manual-cleanup-hook /root/certbot-he-hook.sh  \
  --manual-public-ip-logging-ok \
  --domain xyz.com

@angel333
Copy link
Owner

Thanks. Could you also try it with HE_USER and HE_PASS instead of HE_SESSID?

@zaszlo
Copy link
Author

zaszlo commented Oct 19, 2018

Thank you, this way it did work. The SESSID was right though, I double checked and am logged in with it. But it is more convinient to just write the user/pass than to log in and check out the sessid.

@angel333
Copy link
Owner

Glad it worked. Indeed, there was a bug in the HE_SESSID part. Thanks for reporting!

@angel333 angel333 changed the title readme enhancement $HE_SESSID doesn't work and README enhancement Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants