[Solved] Certificate migration

My domain is: eklectik-mood.ml & www.eklectik-mood.ml

Hi, I created a wordpress server on AWS with the bitnami image and I used the tools provided by bitnami (based on lego) to create my certificate.
Now, I want to migrate my server on my own raspberry pi running Raspbian 9.
I copied the /etc/letsencrypt directory content from my existing server to the new one and indeed everything is working correctly.
I have already other certificates on this rasp (domain levillain.ml and *.levillain.ml managed through DNS challenge) but the way the files are organized in the /etc/letsencrypt directory is very different between certbot and lego apparently: no archive or live directory for lego…
So, I wanted to force the certificate renewal with certbot on eklectik-mood.ml in order to be sure that everything will be alright when it expires.

I ran this command: certbot-auto renew
It produced this output:

Processing /etc/letsencrypt/renewal/eklectik-mood.ml.conf

Traceback (most recent call last):
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/renewal.py”, line 64, in _reconstitute
renewal_candidate = storage.RenewableCert(full_path, config)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/storage.py”, line 447, in __init__s
“file reference”.format(self.configfile))
CertStorageError: renewal config file {} is missing a required file reference
Renewal configuration file /etc/letsencrypt/renewal/eklectik-mood.ml.conf is broken. Skipping.

My web server is apache 2.4.25

The operating system my web server runs on is (include version): Raspbian 9

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): 0.36.0

I managed to solve this by running the following command:

./letsencrypt-auto --account <my “old” account> --server https://acme-v02.api.letsencrypt.org/directory --cert-path /etc/letsencrypt/live/eklectik-mood.ml -d eklectik-mood.ml -d www.eklectik-mood.ml --apache certonly

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.