antevens / letsencrypt-freeipa

Scripts to automate installation, configuration and renewal of LetsEncrypt certificates on FreeIPA Servers.
MIT License
59 stars 17 forks source link

Sed Zone bug in register.sh #10

Closed Yamakasi closed 5 years ago

Yamakasi commented 5 years ago

Hi,

Refering to #9

https://github.com/antevens/letsencrypt-freeipa/blob/662e4df4a8eeb0dd938e42c4e01e79eb8ecfbcc0/register.sh#L112

zone="$(echo "${principal}" | sed -e 's/^[a-zA-Z0-9\-\_]*\.//')"

needs to be:

zone="$(echo "${principal}" | sed -e 's/^[a-zA-Z0-9_-]*\.//')"

After this I still end up at:

Keytab successfully retrieved and stored in: /etc/lets-encrypt.keytab
  Record name: _acme-challenge.ipa-01-dc-01
  TXT record: INITIALIZED
Loaded config parameter realm with value of 'IPA.DOMAIN.TLD'
kinit: Preauthentication failed while getting initial credentials

Thanks so far!

antevens commented 5 years ago

Thx, check out the changes in the develop branch if you have time and I'm happy to accept Pull/Merge requests :)

Yamakasi commented 5 years ago

@antevens Will do, I also see some keytab issues for the lets encrypt keytab, maybe it's fixed there :)

Can you update the readme for this dev usage as well ?

I will test the "hell" out of it, PR's are not my thing really ;)