Koozali.org: home of the SME Server

Letsencrypt domain names change back to old settings

Offline beast

  • *
  • 245
  • +0/-0
Letsencrypt domain names change back to old settings
« on: December 03, 2016, 09:39:07 AM »
Hi all

I have now seen this 2 times that the Anacron job 'cron.daily' on my server change back the domain names to some old settings - WHY?

It is with months in between and correlate with server upgrade/reboot actions.

I have been using the contrib for some time and some month ago i "upgraded" to the Dehydrated version - the the problems started as I at the same time changed the domain names in domains.txt

Code: [Select]
/etc/cron.daily/call-dehydrated:

# INFO: Using main config file /etc/dehydrated/config
Processing beast.dk with alternative names:

** deleted **

 + Checking domain name(s) of existing cert... unchanged.
 + Checking expire date of existing cert...
 + Valid till Jan 21 05:34:00 2017 GMT (Longer than 30 days). Skipping renew!

And then it switches back to the old domains - why?

Code: [Select]

/etc/cron.daily/call-dehydrated:

# INFO: Using main config file /etc/dehydrated/config
Processing beast.dk with alternative names:

** deleted **

 + Checking domain name(s) of existing cert... changed!
 + Domain name(s) are not matching!
 + Names in old certificate: beast.dk

** deleted **

 + Forcing renew.
 + Checking expire date of existing cert...
 + Valid till Jan 21 05:34:00 2017 GMT (Longer than 30 days). Ignoring because renew was forced!
 + Signing domains...
 + Generating private key...
 + Generating signing request...
 + Requesting challenge for beast.dk...
 + Requesting challenge for

** deleted **
 
 + Responding to challenge for beast.dk...
 + Challenge is valid!
 + Responding to challenge for

** deleted **

 + Requesting certificate...
 + Checking certificate...
 + Done!
 + Creating fullchain.pem...
Set up modSSL db keys
Signal events
All complete
 + Done!

Is the old settings stored in the db or another file somewhere?

I can see that the domain.txt file was changed at 29/11 6:16. In the log files it looks as if I did a server upgrade/reboot at this time - but why does it change the domain.txt file?

/Benny
« Last Edit: December 03, 2016, 10:01:30 AM by beast »

guest22

Re: Letsencrypt domain names change back to old settings
« Reply #1 on: December 04, 2016, 07:29:39 PM »
contrib or manual letsencrypt?

Offline beast

  • *
  • 245
  • +0/-0
Re: Letsencrypt domain names change back to old settings
« Reply #2 on: December 05, 2016, 06:59:58 AM »
contrib or manual letsencrypt?

I have followed the guide at https://wiki.contribs.org/Letsencrypt from back when it was quite new and to the current version.

The last time I did the steps I did it manual - but to be honest I do not really remember what I have done in the past ;-)

I can see that one explanation is that I have used a contrib in the past and it is still there and overwrite the domain.txt file at upgrade with settings from the db!

How do I check if this is the case and fix it?

/Benny


Offline beast

  • *
  • 245
  • +0/-0
Re: Letsencrypt domain names change back to old settings
« Reply #4 on: December 05, 2016, 09:33:56 PM »
See https://wiki.contribs.org/Letsencrypt#Install_with_John_Crisp_contrib

I checked the contribs I have installed with the command: /sbin/e-smith/audittools/newrpms

and smeserver-letsencrypt.noarch is installed

So I updated the db configuration with

db hosts setprop www.mydomain.com letsencryptSSLcert enabled
db domains setprop mydomain.com  letsencryptSSLcert enabled

and hope this will solve the situation

Thank you

Offline ReetP

  • *
  • 3,736
  • +5/-0
Re: Letsencrypt domain names change back to old settings
« Reply #5 on: December 12, 2016, 12:15:16 PM »
Sorry I have not been around much recently due to buggering my back :-(

Let me know if you have any issues - I don't visit the forums very often and I am hoping we can get letsencrypt into contribs sometime soon so issues can be reported as bugs and I will then see any bug reports.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline beast

  • *
  • 245
  • +0/-0
Re: Letsencrypt domain names change back to old settings
« Reply #6 on: December 12, 2016, 12:28:09 PM »
Sorry I have not been around much recently due to buggering my back :-(

Let me know if you have any issues - I don't visit the forums very often and I am hoping we can get letsencrypt into contribs sometime soon so issues can be reported as bugs and I will then see any bug reports.

As far as I know it works fine for now